mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-28 20:17:48 +01:00
Fixed some boss spawnpoint issues.
This commit is contained in:
parent
b8d2fff2fb
commit
f7d9ce1bd6
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -1156,7 +1156,10 @@ public class Arena
|
||||
public Location getBossSpawnpoint()
|
||||
{
|
||||
if (spawnpointsBoss.isEmpty())
|
||||
return getSpawnpoints().get(0);
|
||||
{
|
||||
List<Location> points = WaveUtils.getValidSpawnpoints(this, getLivingPlayers());
|
||||
return points.get(MobArena.random.nextInt(points.size()));
|
||||
}
|
||||
|
||||
return new ArrayList<Location>(spawnpointsBoss.values()).get(MobArena.random.nextInt(spawnpointsBoss.size()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user