diff options
author | PilzAdam <adam-k@outlook.com> | 2012-09-25 19:17:38 +0200 |
---|---|---|
committer | PilzAdam <adam-k@outlook.com> | 2012-09-25 19:17:38 +0200 |
commit | 1fc381cef63abaf0a5fadd5724c4689f67c3ee1b (patch) | |
tree | c2a3205f914f89bb29b93177eb3a3178d952ab01 | |
parent | 3968be927020ff447f0e4819df589f3d2648298f (diff) |
The item removing can be disabled if the item_remove setting in minetest.conf is 0
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |