convert remove_items to avoid crashes

This commit is contained in:
hdastwb 2013-07-20 11:32:26 -04:00
parent acef4b1f63
commit 17f3ce2ba3

View File

@ -88,7 +88,7 @@ minetest.register_entity(":__builtin:item", {
end, end,
on_step = function(self, dtime) on_step = function(self, dtime)
local time = minetest.setting_get("remove_items") local time = tonumber(minetest.setting_get("remove_items"))
if not time then if not time then
time = 300 time = 300
end end