mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed rebounding
This commit is contained in:
parent
7e5666f982
commit
4d604fef76
@ -35,7 +35,7 @@ public class Rebounding extends EcoEnchant {
|
|||||||
LivingEntity victim = (LivingEntity) event.getEntity();
|
LivingEntity victim = (LivingEntity) event.getEntity();
|
||||||
LivingEntity attacker = (LivingEntity) event.getDamager();
|
LivingEntity attacker = (LivingEntity) event.getDamager();
|
||||||
|
|
||||||
int level = EnchantChecks.getArmorPoints(attacker, this);
|
int level = EnchantChecks.getArmorPoints(victim, this);
|
||||||
|
|
||||||
if (level == 0) {
|
if (level == 0) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user