From aee2b376c45bbbbafd18dc0a6787b0307dc1e712 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 6 Feb 2022 14:06:13 +0000 Subject: [PATCH] Fixed autospawn world checks --- .../main/kotlin/com/willfp/ecobosses/spawn/AutospawnHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }