Ignore empty builds (untested!)
This commit is contained in:
parent
5c83f5c1e5
commit
6bb60ddebd
@ -190,7 +190,22 @@ public class SpeedBuilders extends SoloGame
|
||||
|
||||
for (Entry<String, ArrayList<Location>> entry : WorldData.GetAllCustomLocs().entrySet())
|
||||
{
|
||||
_buildData.add(new BuildData(entry.getValue().get(0).clone().subtract(0.5, 0, 0.5), ChatColor.translateAlternateColorCodes('&', entry.getKey()), this));
|
||||
BuildData buildData = new BuildData(entry.getValue().get(0).clone().subtract(0.5, 0, 0.5), ChatColor.translateAlternateColorCodes('&', entry.getKey()), this);
|
||||
boolean add = false;
|
||||
for (int x = 0; x < BuildSize && !add; x++)
|
||||
{
|
||||
for (int y = 0; y < BuildSize && !add; y++)
|
||||
{
|
||||
for (int z = 0; z < BuildSize && !add; z++)
|
||||
{
|
||||
if (buildData.Build[x][y][z] != null && buildData.Build[x][y][z].getType() != Material.AIR)
|
||||
add = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (add)
|
||||
_buildData.add(new BuildData(entry.getValue().get(0).clone().subtract(0.5, 0, 0.5), ChatColor.translateAlternateColorCodes('&', entry.getKey()), this));
|
||||
}
|
||||
|
||||
for (Location loc : WorldData.GetDataLocs("YELLOW"))
|
||||
@ -748,7 +763,7 @@ public class SpeedBuilders extends SoloGame
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
UtilTextMiddle.display("", C.cAqua + GUARDIAN_NAME + " is judging", 0, 30, 10);
|
||||
UtilTextMiddle.display("", C.cAqua + GUARDIAN_NAME + " is Judging", 0, 30, 10);
|
||||
}
|
||||
}, 40L);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user