Simplify Region.hasExtensionType
Dieser Commit ist enthalten in:
Ursprung
a56b399611
Commit
e661d2657e
@ -216,11 +216,14 @@ public class Region {
|
||||
}
|
||||
|
||||
public boolean hasExtensionType(RegionType regionType) {
|
||||
if (!hasType(regionType)) {
|
||||
return false;
|
||||
}
|
||||
switch (regionType) {
|
||||
case BUILD:
|
||||
return prototype != null && prototype.getBuild() != null && prototype.getBuild().isExtensionRegistered();
|
||||
return prototype.getBuild().isExtensionRegistered();
|
||||
case TESTBLOCK:
|
||||
return prototype != null && prototype.getTestblock() != null && prototype.getTestblock().isExtensionRegistered();
|
||||
return prototype.getTestblock().isExtensionRegistered();
|
||||
default:
|
||||
case NORMAL:
|
||||
return false;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren