Don't allow to collect TNT after ignition

This commit is contained in:
Wuzzy 2017-01-05 00:25:10 +01:00
parent c9afb852db
commit 0f671ea624

View File

@ -138,14 +138,6 @@ function TNT:on_step(dtime)
end
end
function TNT:on_punch(hitter)
self.health = self.health - 1
if self.health <= 0 then
self.object:remove()
hitter:get_inventory():add_item("main", "tnt:tnt")
end
end
minetest.register_entity("tnt:tnt", TNT)
minetest.register_craft({