mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed enchantments triggering on thorns
This commit is contained in:
parent
80f740cdea
commit
33a9829ecc
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user