mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Better error message for LocalBlockVectorSet
This commit is contained in:
parent
f886320c44
commit
3a45a31e65
@ -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]");
|
||||||
|
Loading…
Reference in New Issue
Block a user