Fixed some boss spawnpoint issues.
This commit is contained in:
1 parent
b8d2fff2fb
commit
f7d9ce1bd6
2 files changed
+4
-1
No files matched your search
Binary file not shown.
@@ -1156,7 +1156,10 @@ public class Arena
|
|||||||
public Location getBossSpawnpoint()
|
public Location getBossSpawnpoint()
|
||||||
{
|
{
|
||||||
if (spawnpointsBoss.isEmpty())
|
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()));
|
return new ArrayList<Location>(spawnpointsBoss.values()).get(MobArena.random.nextInt(spawnpointsBoss.size()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user