Make sure we return a string in get_staticdata

This commit is contained in:
kay27 2022-01-20 19:54:08 +04:00
parent 7b50aeb440
commit c7ad90f78a
1 changed files with 1 additions and 1 deletions

View File

@ -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)