summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <adam-k@outlook.com>2012-09-25 19:17:38 +0200
committerPilzAdam <adam-k@outlook.com>2012-09-25 19:17:38 +0200
commit1fc381cef63abaf0a5fadd5724c4689f67c3ee1b (patch)
treec2a3205f914f89bb29b93177eb3a3178d952ab01
parent3968be927020ff447f0e4819df589f3d2648298f (diff)
The item removing can be disabled if the item_remove setting in minetest.conf is 0
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 506c8df..20cc5fa 100644
--- a/init.lua
+++ b/init.lua
@@ -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