Fixed enchantments triggering on thorns

This commit is contained in:
Auxilor 2021-01-06 12:58:59 +00:00
parent 80f740cdea
commit 33a9829ecc

View File

@ -246,6 +246,10 @@ public class WatcherTriggers extends PluginDependent implements Listener {
return;
}
if(event.getCause() == EntityDamageEvent.DamageCause.THORNS) {
return;
}
LivingEntity attacker = (LivingEntity) event.getDamager();
LivingEntity victim = (LivingEntity) event.getEntity();