mirror of
https://github.com/HybridDog/builtin_item.git
synced 2024-12-22 17:00:27 +01:00
The item removing can be disabled if the item_remove setting in minetest.conf is 0
This commit is contained in:
parent
3968be9270
commit
1fc381cef6
2
init.lua
2
init.lua
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user