mirror of
https://github.com/HybridDog/builtin_item.git
synced 2024-12-22 17:00:27 +01:00
Fix a string not being converted into a number
This commit is contained in:
parent
7c7d3e2292
commit
64626b15c8
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user