forked from MineClone5/MineClone5
Make sure we return a string in get_staticdata
This commit is contained in:
parent
7b50aeb440
commit
c7ad90f78a
|
@ -10,7 +10,7 @@ minetest.register_entity("mcl_end:ender_eye", {
|
|||
|
||||
-- Save and restore age
|
||||
get_staticdata = function(self)
|
||||
return tostring(self._age)
|
||||
return tostring(self._age) or "0"
|
||||
end,
|
||||
on_activate = function(self, staticdata, dtime_s)
|
||||
local age = tonumber(staticdata)
|
||||
|
|
Loading…
Reference in New Issue