mirror of
https://github.com/ElCeejo/animalia
synced 2025-11-08 21:57:59 +01:00
Fix idle receiving nil value
This commit is contained in:
parent
20a59ddd30
commit
7bb52529bd
@ -756,7 +756,7 @@ creatura.register_utility("animalia:basic_idle", function(self, timeout, anim)
|
|||||||
local init = false
|
local init = false
|
||||||
local function func(mob)
|
local function func(mob)
|
||||||
if not init then
|
if not init then
|
||||||
creatura.action_idle(mob, timeout, anim)
|
creatura.action_idle(mob, timer, anim)
|
||||||
end
|
end
|
||||||
timer = timer - mob.dtime
|
timer = timer - mob.dtime
|
||||||
if timer <= 0 then
|
if timer <= 0 then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user