mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-30 19:42:59 +00:00
Don't allow to collect TNT after ignition
This commit is contained in:
parent
c9afb852db
commit
0f671ea624
1 changed files with 0 additions and 8 deletions
|
@ -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 a new issue