1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-23 01:10:26 +01:00

The item removing can be disabled if the item_remove setting in minetest.conf is 0

This commit is contained in:
PilzAdam 2012-09-25 19:17:38 +02:00
parent 3968be9270
commit 1fc381cef6

View File

@ -86,7 +86,7 @@ minetest.register_entity(":__builtin:item", {
self.timer = 0 self.timer = 0
end end
self.timer = self.timer + dtime self.timer = self.timer + dtime
if (self.timer > time) then if time ~= 0 and (self.timer > time) then
self.object:remove() self.object:remove()
end end