From 81ca7469d75ce6317e12e18c72410b018f59432a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 17 Feb 2020 17:44:38 +0100 Subject: [PATCH] TNT explosions deal punch damage --- mods/ITEMS/mcl_throwing/init.lua | 2 +- mods/ITEMS/mcl_tnt/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_throwing/init.lua b/mods/ITEMS/mcl_throwing/init.lua index c997a394d7..b1d9db3750 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -338,7 +338,7 @@ local pearl_on_step = function(self, dtime) local oldpos = player:get_pos() -- Teleport and hurt player player:set_pos(telepos) - player:set_hp(player:get_hp() - 5, { type = "fall", origin = "mod" }) + player:set_hp(player:get_hp() - 5, { type = "fall", from = "mod" }) -- 5% chance to spawn endermite at the player's origin local r = math.random(1,20) diff --git a/mods/ITEMS/mcl_tnt/init.lua b/mods/ITEMS/mcl_tnt/init.lua index 7b0adc8bdb..47864bfa95 100644 --- a/mods/ITEMS/mcl_tnt/init.lua +++ b/mods/ITEMS/mcl_tnt/init.lua @@ -38,7 +38,7 @@ local function do_tnt_physics(tnt_np,tntr) mcl_death_messages.player_damage(obj, S("@1 was caught in an explosion.", obj:get_player_name())) end end - obj:set_hp(obj:get_hp() - damage) + obj:set_hp(obj:get_hp() - damage, { type = "punch", from = "mod" }) end end end