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:
@@ -20,7 +20,7 @@ object AutospawnHandler {
|
|||||||
val location = boss.autoSpawnLocations.randomOrNull() ?: continue
|
val location = boss.autoSpawnLocations.randomOrNull() ?: continue
|
||||||
val world = location.world ?: 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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user