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
1 changed files with 1 additions and 1 deletions

View File

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