From bd8a34dd1583fbbe8db6f16c0ef287783fcb5f2e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 24 Jan 2021 14:58:58 +0100 Subject: [PATCH] Fixing region size --- BauSystem_Main/src/de/steamwar/bausystem/world/Region.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java index a518b80..1a13714 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java @@ -140,9 +140,9 @@ public class Region { } public boolean inRegion(Region region, Location l){ - return inRange(l.getX(), region.minX + offsetX, sizeX + offsetX) && - inRange(l.getY(), region.minY + offsetY, sizeY + offsetY) && - inRange(l.getZ(), region.minZ + offsetZ, sizeZ + offsetZ); + return inRange(l.getX(), region.minX + offsetX, sizeX) && + inRange(l.getY(), region.minY + offsetY, sizeY) && + inRange(l.getZ(), region.minZ + offsetZ, sizeZ); } public void fastreset(Region region){ -- 2.39.2