summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-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