forked from mtcontrib/builtin_item
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