1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-23 01:10:26 +01:00
This commit is contained in:
PilzAdam 2012-09-25 16:36:48 +02:00
parent 8caffae1e3
commit a0c49e7677

View File

@ -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()