3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Better error message for LocalBlockVectorSet

Dieser Commit ist enthalten in:
dordsor21 2021-09-30 13:17:28 +01:00
Ursprung f886320c44
Commit 3a45a31e65
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -268,7 +268,8 @@ public class LocalBlockVectorSet implements Set<BlockVector3> {
int relZ = z - offsetZ; int relZ = z - offsetZ;
if (relX > 1023 || relX < -1024 || relZ > 1023 || relZ < -1024) { if (relX > 1023 || relX < -1024 || relZ > 1023 || relZ < -1024) {
throw new UnsupportedOperationException( throw new UnsupportedOperationException(
"LocalVectorSet can only contain vectors within 1024 blocks (cuboid) of the first entry. "); "LocalVectorSet can only contain vectors within 1024 blocks (cuboid) of the first entry. Attempted to set " +
"block at " + x + ", " + y + ", " + z + ". With origin " + offsetX + " " + offsetZ);
} }
if (y < -128 || y > 383) { if (y < -128 || y > 383) {
throw new UnsupportedOperationException("LocalVectorSet can only contain vectors from y elem:[-128,383]"); throw new UnsupportedOperationException("LocalVectorSet can only contain vectors from y elem:[-128,383]");