SteamWar/BauSystem
Archiviert
13
0

Add Region.Prototype.extensionPrototypeArea

Dieser Commit ist enthalten in:
jojo 2021-02-17 14:44:46 +01:00
Ursprung eadc741137
Commit 0a60393cc3

Datei anzeigen

@ -195,6 +195,14 @@ public class Region {
prototype.protect(this, schem); prototype.protect(this, schem);
} }
public boolean hasExtensionAreaRegistered() {
return prototype.extensionPrototypeArea;
}
public boolean hasTestblockExtensionAreaRegistered() {
return prototype.testblock.extensionPrototypeArea;
}
public static class GlobalRegion extends Region { public static class GlobalRegion extends Region {
private static final GlobalRegion GLOBAL_REGION = new GlobalRegion(); private static final GlobalRegion GLOBAL_REGION = new GlobalRegion();
@ -248,6 +256,7 @@ public class Region {
private final int extensionNegativeZ; private final int extensionNegativeZ;
private final int extensionPositiveY; private final int extensionPositiveY;
private final int extensionAxisX; private final int extensionAxisX;
private final boolean extensionPrototypeArea;
private final String schematic; private final String schematic;
private final boolean rotate; private final boolean rotate;
@ -271,6 +280,9 @@ public class Region {
extensionAxisX = config.getInt("extensionAxisX", 0); extensionAxisX = config.getInt("extensionAxisX", 0);
if (config.contains("extensionPositiveZ") || config.contains("extensionNegativeZ") || config.contains("extensionPositiveY") || config.contains("extensionAxisX")) { if (config.contains("extensionPositiveZ") || config.contains("extensionNegativeZ") || config.contains("extensionPositiveY") || config.contains("extensionAxisX")) {
extensionArea = true; extensionArea = true;
extensionPrototypeArea = true;
} else {
extensionPrototypeArea = false;
} }
rotate = config.getBoolean("rotate", false); rotate = config.getBoolean("rotate", false);