diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/spawn/AutospawnHandler.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/spawn/AutospawnHandler.kt index fd7e134..64fa363 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/spawn/AutospawnHandler.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecobosses/spawn/AutospawnHandler.kt @@ -20,7 +20,7 @@ object AutospawnHandler { val location = boss.autoSpawnLocations.randomOrNull() ?: continue val world = location.world ?: continue - if (Bosses.getAllAlive().mapNotNull { it.entity }.map { it.world } == world) { + if (Bosses.getAllAlive().mapNotNull { it.entity }.any { it.world == world }) { continue }