1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-22 17:00:27 +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
time = 300
end
if not self.timer then
self.timer = 0
end
self.timer = self.timer + dtime
if (self.timer > time) then
self.object:remove()