1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-23 01:10:26 +01:00

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