mirror of
https://github.com/HybridDog/builtin_item.git
synced 2024-12-23 01:10:26 +01:00
Bugfix
This commit is contained in:
parent
8caffae1e3
commit
a0c49e7677
3
init.lua
3
init.lua
@ -82,6 +82,9 @@ minetest.register_entity(":__builtin:item", {
|
|||||||
if not time then
|
if not time then
|
||||||
time = 300
|
time = 300
|
||||||
end
|
end
|
||||||
|
if not self.timer then
|
||||||
|
self.timer = 0
|
||||||
|
end
|
||||||
self.timer = self.timer + dtime
|
self.timer = self.timer + dtime
|
||||||
if (self.timer > time) then
|
if (self.timer > time) then
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
Loading…
Reference in New Issue
Block a user