mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-05-31 19:36:27 -04:00
fix: Assignment to undeclared global "far_from_group" inside a function
This commit is contained in:
parent
32be6f26b6
commit
3393c300c2
1 changed files with 1 additions and 0 deletions
|
@ -636,6 +636,7 @@ creatura.register_utility("animalia:boid_wander", function(self, group)
|
||||||
local idle_time = 3
|
local idle_time = 3
|
||||||
local move_probability = 5
|
local move_probability = 5
|
||||||
local group_tick = 1
|
local group_tick = 1
|
||||||
|
local far_from_group = false
|
||||||
local function func(self)
|
local function func(self)
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
if not pos then return end
|
if not pos then return end
|
||||||
|
|
Loading…
Add table
Reference in a new issue