diff --git a/init.lua b/init.lua index 21801ca..64d34bd 100644 --- a/init.lua +++ b/init.lua @@ -78,7 +78,7 @@ minetest.register_entity(":__builtin:item", { end, on_step = function(self, dtime) - local time = minetest.setting_get("remove_items") + local time = tonumber(minetest.setting_get("remove_items")) if not time then time = 300 end