mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-27 03:10:29 +01:00
Merge pull request #61 from hdastwb/patch-1
Convert remove_items to a number in item_drop to avoid crashes
This commit is contained in:
commit
e43e6cc1b0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user