diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt index db2dd184e..7fa5700f0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt @@ -199,10 +199,12 @@ class MinionFeatures { } private fun removeBuggedMinions() { + if (!IslandType.PRIVATE_ISLAND.isInIsland()) return val minions = minions ?: return val removedEntities = mutableListOf<LorenzVec>() for (location in minions.keys) { + if (location.distanceToPlayer() > 30) continue val entitiesNearby = EntityUtils.getEntities<EntityArmorStand>().map { it.distanceTo(location) } if (!entitiesNearby.any { it == 0.0 }) { removedEntities.add(location) |