From 0f671ea6244584a096d3b4ccc3371357c14ee15c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Jan 2017 00:25:10 +0100 Subject: [PATCH] Don't allow to collect TNT after ignition --- mods/tnt/init.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 7d23a042..99b67cdc 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -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({