diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java index a2a9c48..2dfa4f8 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java @@ -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);