From 3a45a31e65aa5de6849aaf7dc9f0b9cabaf5450c Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 30 Sep 2021 13:17:28 +0100 Subject: [PATCH] Better error message for LocalBlockVectorSet --- .../com/fastasyncworldedit/core/math/LocalBlockVectorSet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/math/LocalBlockVectorSet.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/math/LocalBlockVectorSet.java index 4b11bcd0c..94fabe2fc 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/math/LocalBlockVectorSet.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/math/LocalBlockVectorSet.java @@ -268,7 +268,8 @@ public class LocalBlockVectorSet implements Set { 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]");