forked from MineClone5/MineClone5
Don't allow to collect TNT after ignition
This commit is contained in:
parent
c9afb852db
commit
0f671ea624
|
@ -138,14 +138,6 @@ function TNT:on_step(dtime)
|
||||||
end
|
end
|
||||||
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_entity("tnt:tnt", TNT)
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
Loading…
Reference in New Issue