From 4ff8268948a005e6303f4330bb451b8376c29592 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Thu, 13 Jun 2024 05:45:01 -0500 Subject: [PATCH] Add fireDamage game rule (fallDamage and drowningDamage don't work in mcl_damage) --- mods/CORE/mcl_damage/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_damage/init.lua b/mods/CORE/mcl_damage/init.lua index 0bed3ceff..1a0841687 100644 --- a/mods/CORE/mcl_damage/init.lua +++ b/mods/CORE/mcl_damage/init.lua @@ -168,8 +168,10 @@ minetest.register_on_player_hpchange(function(player, hp_change, mt_reason) if not damage_enabled[1] then return 0 end local mcl_reason = mcl_damage.from_mt(mt_reason) if not fire_damage_enabled[1] and mcl_reason.type == "fire" then return 0 end - if not drowning_damage_enabled[1] and mcl_reason.type == "drown" then return 0 end - if not fall_damage_enabled[1] and mcl_reason.type == "fall" then return 0 end + --if not drowning_damage_enabled[1] and mcl_reason.type == "drown" then return 0 end + --if not fall_damage_enabled[1] and mcl_reason.type == "fall" then return 0 end + + --minetest.log("action", "mcl_reason = "..dump(mcl_reason)..", mt_reason = "..dump(mt_reason)) if player:get_hp() > 0 then if hp_change < 0 then