From 4d604fef76b66afe28c870307cbf3a32420cff53 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 9 Apr 2021 01:39:38 +0100 Subject: [PATCH] Fixed rebounding --- .../ecoenchants/enchantments/ecoenchants/normal/Rebounding.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rebounding.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rebounding.java index 4e23c9cc..f22d8a86 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rebounding.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Rebounding.java @@ -35,7 +35,7 @@ public class Rebounding extends EcoEnchant { LivingEntity victim = (LivingEntity) event.getEntity(); LivingEntity attacker = (LivingEntity) event.getDamager(); - int level = EnchantChecks.getArmorPoints(attacker, this); + int level = EnchantChecks.getArmorPoints(victim, this); if (level == 0) { return;