diff --git a/src/main/java/org/mcmonkey/sentinel/SentinelTrait.java b/src/main/java/org/mcmonkey/sentinel/SentinelTrait.java index 9387730..bf8e217 100644 --- a/src/main/java/org/mcmonkey/sentinel/SentinelTrait.java +++ b/src/main/java/org/mcmonkey/sentinel/SentinelTrait.java @@ -984,6 +984,9 @@ public void swapToMelee() { } public void tryAttack(LivingEntity entity) { + if (!entity.getWorld().equals(getLivingEntity().getWorld())) { + return; + } // TODO: Simplify this code! stats_attackAttempts++; double dist = getLivingEntity().getEyeLocation().distanceSquared(entity.getEyeLocation());