9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-20 15:39:31 +00:00

Fixed autospawn world checks

This commit is contained in:
Auxilor
2022-02-06 14:06:13 +00:00
parent 6ca3441f3b
commit aee2b376c4

View File

@@ -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
}