From 0cd4997174a30c3e2c4d5ec8b46fafde5e98351f Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Sun, 10 Jan 2021 04:57:01 -0500 Subject: [PATCH] Support signed positions for jigsaw --- .../java/com/volmit/iris/object/IrisObject.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/volmit/iris/object/IrisObject.java b/src/main/java/com/volmit/iris/object/IrisObject.java index a6a52da6b..67f39c29d 100644 --- a/src/main/java/com/volmit/iris/object/IrisObject.java +++ b/src/main/java/com/volmit/iris/object/IrisObject.java @@ -289,18 +289,19 @@ public class IrisObject extends IrisRegistrant } } - public void setUnsigned(int x, int y, int z, BlockData block) + public BlockVector getSigned(int x, int y, int z) { - if(shitty) - { - return; - } if(x >= w || y >= h || z >= d) { throw new RuntimeException(x + " " + y + " " + z + " exceeds limit of " + w + " " + h + " " + d); } - BlockVector v = new BlockVector(x, y, z).subtract(center).toBlockVector(); + return new BlockVector(x, y, z).subtract(center).toBlockVector(); + } + + public void setUnsigned(int x, int y, int z, BlockData block) + { + BlockVector v = getSigned(x,y,z); if(block == null) {