mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Remove broken support for remove_items
This commit is contained in:
parent
dd05828281
commit
2efa5e6c96
1 changed files with 0 additions and 6 deletions
|
@ -139,12 +139,6 @@ function minetest.handle_node_drops(pos, drops, digger)
|
||||||
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})
|
||||||
obj:get_luaentity().age = 0.6
|
obj:get_luaentity().age = 0.6
|
||||||
-- FIXME this doesnt work for deactiveted objects
|
|
||||||
if minetest.setting_get("remove_items") and tonumber(minetest.setting_get("remove_items")) then
|
|
||||||
minetest.after(tonumber(minetest.setting_get("remove_items")), function(obj)
|
|
||||||
obj:remove()
|
|
||||||
end, obj)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue