convert remove_items to avoid crashes
authorhdastwb <hdastwb@hdastwb.heliohost.org>
Sat, 20 Jul 2013 15:32:26 +0000 (11:32 -0400)
committerhdastwb <hdastwb@hdastwb.heliohost.org>
Sat, 20 Jul 2013 15:32:26 +0000 (11:32 -0400)
item_drop/item_entity.lua

index 5da82852beb36c9eab36dca323154b4cdd4494e3..fb0527f39a31822806d5ed255d0838603b8ca40e 100644 (file)
@@ -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