Fix Region
Dieser Commit ist enthalten in:
Ursprung
83a97944bf
Commit
5c31db3867
@ -315,9 +315,9 @@ public class Region {
|
||||
}
|
||||
|
||||
public boolean inRegionExtension(Region region, Location l) {
|
||||
return inRange(l.getX(), region.minX + offsetX - extensionAxisX + 1, sizeX + extensionAxisX * 2 - 1) &&
|
||||
inRange(l.getY(), region.minY + offsetY, sizeY + extensionPositiveY - 1) &&
|
||||
inRange(l.getZ(), region.minZ + offsetZ - extensionNegativeZ + 1, sizeZ + extensionNegativeZ - 1 + extensionPositiveZ);
|
||||
return inRange(l.getX(), region.minX + offsetX - extensionAxisX, sizeX + extensionAxisX * 2) &&
|
||||
inRange(l.getY(), region.minY + offsetY, sizeY + extensionPositiveY) &&
|
||||
inRange(l.getZ(), region.minZ + offsetZ - extensionNegativeZ, sizeZ + extensionNegativeZ + extensionPositiveZ);
|
||||
}
|
||||
|
||||
public void fastreset(Region region){
|
||||
@ -362,7 +362,7 @@ public class Region {
|
||||
}
|
||||
|
||||
private static boolean inRange(double l, int min, int size){
|
||||
return min <= l && l <= min + size;
|
||||
return min <= l && l < min + size;
|
||||
}
|
||||
|
||||
private static void paste(File file, int x, int y, int z, boolean rotate){ //Type of protect
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren