diff --git a/src/main/java/com/windanesz/ancientspellcraft/entity/construct/EntityArcaneBarrier.java b/src/main/java/com/windanesz/ancientspellcraft/entity/construct/EntityArcaneBarrier.java index f63b1a96..8302e0a9 100644 --- a/src/main/java/com/windanesz/ancientspellcraft/entity/construct/EntityArcaneBarrier.java +++ b/src/main/java/com/windanesz/ancientspellcraft/entity/construct/EntityArcaneBarrier.java @@ -166,7 +166,7 @@ public void onUpdate() { targets.remove(this); - targets.removeIf(t -> !(t instanceof (EntityLivingBase)) || t instanceof EntityArmorStand || AllyDesignationSystem.isAllied((EntityLivingBase) t, getCaster()) || t instanceof EntityMagicConstruct || t instanceof EntityXPOrb || t instanceof EntityAnimal || t instanceof EntityMagicArrow && !this.isValidTarget(((EntityMagicArrow) t).getCaster()) + targets.removeIf(t -> !(t instanceof EntityLivingBase) || t instanceof EntityArmorStand || t instanceof EntityLivingBase && AllyDesignationSystem.isAllied((EntityLivingBase) t, getCaster()) || t instanceof EntityMagicConstruct || t instanceof EntityXPOrb || t instanceof EntityAnimal || t instanceof EntityMagicArrow && !this.isValidTarget(((EntityMagicArrow) t).getCaster()) || t instanceof EntityThrowable && !this.isValidTarget(((EntityThrowable) t).getThrower()) || t instanceof EntityArrow && !this.isValidTarget(((EntityArrow) t).shootingEntity));