Fix a string not being converted into a number

This commit is contained in:
PilzAdam 2013-10-27 09:57:02 +01:00
parent 7c7d3e2292
commit 64626b15c8

View File

@ -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