SteamWar/BauSystem2.0
Archiviert
12
0

Simplify Region.hasType

Dieser Commit ist enthalten in:
yoyosource 2021-04-20 11:15:35 +02:00
Ursprung 89d1289f64
Commit a56b399611

Datei anzeigen

@ -201,14 +201,17 @@ public class Region {
}
public boolean hasType(RegionType regionType) {
if (prototype == null) {
return false;
}
switch (regionType) {
case BUILD:
return prototype != null && prototype.getBuild() != null;
return prototype.getBuild() != null;
case TESTBLOCK:
return prototype != null && prototype.getTestblock() != null;
return prototype.getTestblock() != null;
default:
case NORMAL:
return prototype != null;
return true;
}
}