mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Merge pull request #87 from C-C-Minetest-Server/fork-20240318-basic-idle-nil
Fix idle receiving nil value
This commit is contained in:
commit
259e741282
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue