mirror of
https://github.com/HybridDog/builtin_item.git
synced 2025-07-14 14:20:33 +02:00
The item removing can be disabled if the item_remove setting in minetest.conf is 0
This commit is contained in:
2
init.lua
2
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
|
||||
|
||||
|
Reference in New Issue
Block a user