diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Deflection.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Deflection.java index d4d9e894..617db5f0 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Deflection.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Deflection.java @@ -20,6 +20,14 @@ public class Deflection extends EcoEnchant { @NotNull final LivingEntity attacker, final int level, @NotNull final EntityDamageByEntityEvent event) { + if (blocker.hasMetadata("cleaved") || blocker.hasMetadata("carved")) { + return; + } + + if (attacker.hasMetadata("cleaved") || attacker.hasMetadata("carved")) { + return; + } + double perlevel = this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "percent-deflected-per-level"); double damagePercent = (perlevel / 100) * level; double damage = event.getDamage() * damagePercent;