mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 13:52:29 +01:00
Remove remove_items, superseded by item_entity_ttl
This commit is contained in:
parent
7f38ae5261
commit
67025939e7
7
init.lua
7
init.lua
@ -121,13 +121,6 @@ if enable_item_drops then
|
||||
z = -z
|
||||
end
|
||||
obj:setvelocity({x=1/x, y=obj:getvelocity().y, z=1/z})
|
||||
|
||||
-- FIXME this doesnt work for deactiveted objects
|
||||
if minetest.settings:get("remove_items") and tonumber(minetest.settings:get("remove_items")) then
|
||||
minetest.after(tonumber(minetest.settings:get("remove_items")), function(obj)
|
||||
obj:remove()
|
||||
end, obj)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user