From: hdastwb Date: Sat, 20 Jul 2013 15:32:26 +0000 (-0400) Subject: convert remove_items to avoid crashes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=17f3ce2ba37918c828046dbba4cb069415e90a71;p=zefram%2Fminetest%2Ftechnic.git convert remove_items to avoid crashes --- diff --git a/item_drop/item_entity.lua b/item_drop/item_entity.lua index 5da8285..fb0527f 100644 --- a/item_drop/item_entity.lua +++ b/item_drop/item_entity.lua @@ -88,7 +88,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