mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-11-05 06:53:47 +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
|
z = -z
|
||||||
end
|
end
|
||||||
obj:setvelocity({x=1/x, y=obj:getvelocity().y, z=1/z})
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user