mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-04 09:10:38 +02:00
convert remove_items to avoid crashes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user