From c7ad90f78a97492923a36342f7fb353d631f8aa6 Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 20 Jan 2022 19:54:08 +0400 Subject: [PATCH] Make sure we return a string in get_staticdata --- mods/ITEMS/mcl_end/eye_of_ender.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_end/eye_of_ender.lua b/mods/ITEMS/mcl_end/eye_of_ender.lua index 5974e59dd..97dee9336 100644 --- a/mods/ITEMS/mcl_end/eye_of_ender.lua +++ b/mods/ITEMS/mcl_end/eye_of_ender.lua @@ -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)