mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 02:42:25 +01:00
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
Block a user