Add Region.Prototype.extensionPrototypeArea
Dieser Commit ist enthalten in:
Ursprung
eadc741137
Commit
0a60393cc3
@ -195,6 +195,14 @@ public class Region {
|
||||
prototype.protect(this, schem);
|
||||
}
|
||||
|
||||
public boolean hasExtensionAreaRegistered() {
|
||||
return prototype.extensionPrototypeArea;
|
||||
}
|
||||
|
||||
public boolean hasTestblockExtensionAreaRegistered() {
|
||||
return prototype.testblock.extensionPrototypeArea;
|
||||
}
|
||||
|
||||
public static class GlobalRegion extends Region {
|
||||
|
||||
private static final GlobalRegion GLOBAL_REGION = new GlobalRegion();
|
||||
@ -248,6 +256,7 @@ public class Region {
|
||||
private final int extensionNegativeZ;
|
||||
private final int extensionPositiveY;
|
||||
private final int extensionAxisX;
|
||||
private final boolean extensionPrototypeArea;
|
||||
|
||||
private final String schematic;
|
||||
private final boolean rotate;
|
||||
@ -271,6 +280,9 @@ public class Region {
|
||||
extensionAxisX = config.getInt("extensionAxisX", 0);
|
||||
if (config.contains("extensionPositiveZ") || config.contains("extensionNegativeZ") || config.contains("extensionPositiveY") || config.contains("extensionAxisX")) {
|
||||
extensionArea = true;
|
||||
extensionPrototypeArea = true;
|
||||
} else {
|
||||
extensionPrototypeArea = false;
|
||||
}
|
||||
rotate = config.getBoolean("rotate", false);
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren