From 62171b9cf9c72ec693b346c12ec2039324d94277 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 24 Feb 2021 10:55:13 +0100 Subject: [PATCH] Implement #1099 --- mods/ITEMS/mcl_armor/armor.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mods/ITEMS/mcl_armor/armor.lua b/mods/ITEMS/mcl_armor/armor.lua index d5d6ca8aab..1a24b15499 100644 --- a/mods/ITEMS/mcl_armor/armor.lua +++ b/mods/ITEMS/mcl_armor/armor.lua @@ -527,12 +527,7 @@ minetest.register_on_player_hpchange(function(player, hp_change, reason) return hp_change end - local regular_reduction = reason.type ~= "drown" and reason.type ~= "fall" - - -- Account for potion effects (armor doesn't save the target) - if reason.other == "poison" or reason.other == "harming" then - return hp_change - end + local regular_reduction = reason.type ~= "drown" and reason.type ~= "fall" and reason.other ~= "harming" and reason.other ~= "poison" local heal_max = 0 local items = 0