Better error message for LocalBlockVectorSet

This commit is contained in:
dordsor21 2021-09-30 13:17:28 +01:00
parent f886320c44
commit 3a45a31e65
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -268,7 +268,8 @@ public class LocalBlockVectorSet implements Set<BlockVector3> {
int relZ = z - offsetZ;
if (relX > 1023 || relX < -1024 || relZ > 1023 || relZ < -1024) {
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) {
throw new UnsupportedOperationException("LocalVectorSet can only contain vectors from y elem:[-128,383]");