From 66ea51a8e25577110260d88ce2a710cdcadf5071 Mon Sep 17 00:00:00 2001 From: cheaterpaul Date: Wed, 29 Nov 2023 20:05:41 +0100 Subject: [PATCH] fix stake instant kill test only checking on condition --- src/main/java/de/teamlapen/vampirism/items/StakeItem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/teamlapen/vampirism/items/StakeItem.java b/src/main/java/de/teamlapen/vampirism/items/StakeItem.java index 864fab16ba..76029b9930 100644 --- a/src/main/java/de/teamlapen/vampirism/items/StakeItem.java +++ b/src/main/java/de/teamlapen/vampirism/items/StakeItem.java @@ -55,7 +55,8 @@ public static boolean canKillInstant(@NotNull LivingEntity target, LivingEntity } if (instaKillFromBehind && !UtilLib.canReallySee(target, attacker, true)) { return !(VampirismConfig.BALANCE.hsInstantKill2OnlyNPC.get() && target instanceof Player) && target.getMaxHealth() < VampirismConfig.BALANCE.hsInstantKill2MaxHealth.get(); - } else if (instaKillLowHealth && target.getHealth() <= (VampirismConfig.BALANCE.hsInstantKill1MaxHealth.get() * target.getMaxHealth())) { + } + if (instaKillLowHealth && target.getHealth() <= (VampirismConfig.BALANCE.hsInstantKill1MaxHealth.get() * target.getMaxHealth())) { return !VampirismConfig.BALANCE.hsInstantKill1FromBehind.get() || !UtilLib.canReallySee(target, attacker, true); }