From a55499d0310decc54bd249d197f4ebe1c4ce6d80 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Sat, 3 Apr 2021 22:50:14 +0200 Subject: [PATCH] hopefully fixed region points --- .../steamwar/bausystem/world/regions/Prototype.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/regions/Prototype.java b/BauSystem_Main/src/de/steamwar/bausystem/world/regions/Prototype.java index 0ce643b..3c34230 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/regions/Prototype.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/regions/Prototype.java @@ -115,16 +115,16 @@ public class Prototype { switch (regionExtensionType) { case EXTENSION: return new Point( - region.minPoint.getX() + offsetX - extensionAxisX + (sizeX + extensionAxisX * 2), - region.minPoint.getY() + offsetY + sizeY + extensionPositiveY, - region.minPoint.getZ() + offsetZ - extensionNegativeZ + (sizeZ + extensionNegativeZ + extensionPositiveZ) + region.minPoint.getX() + offsetX - extensionAxisX + (sizeX + extensionAxisX * 2) - 1, + region.minPoint.getY() + offsetY + sizeY + extensionPositiveY - 1, + region.minPoint.getZ() + offsetZ - extensionNegativeZ + (sizeZ + extensionNegativeZ + extensionPositiveZ) - 1 ); default: case NORMAL: return new Point( - region.minPoint.getX() + offsetX + sizeX, - region.minPoint.getY() + offsetY + sizeY, - region.minPoint.getZ() + offsetZ + sizeZ + region.minPoint.getX() + offsetX + sizeX - 1, + region.minPoint.getY() + offsetY + sizeY - 1, + region.minPoint.getZ() + offsetZ + sizeZ - 1 ); } }