This commit is contained in:
Luca
2021-11-22 15:59:59 +01:00
parent a0e46dd5a5
commit 16213e44d0
3 changed files with 4 additions and 3 deletions

View File

@ -167,7 +167,7 @@ public class Game {
aMaxZ = lastMinZ;
}
if (location.getX() <= aMinX && location.getX() >= aMaxX && location.getZ() <= aMinZ && location.getZ() >= aMaxZ) {
if (location.getX() >= aMinX && location.getX() <= aMaxX && location.getZ() >= aMinZ && location.getZ() <= aMaxZ) {
return true;
}
@ -188,7 +188,7 @@ public class Game {
bMaxZ = lastMinZ;
}
if (location.getX() <= bMinX && location.getX() >= bMaxX && location.getZ() <= bMinZ && location.getZ() >= bMaxZ) {
if (location.getX() >= bMinX && location.getX() <= bMaxX && location.getZ() >= bMinZ && location.getZ() <= bMaxZ) {
return true;
}