Support signed positions for jigsaw

This commit is contained in:
Daniel Mills 2021-01-10 04:57:01 -05:00
parent f70046bc73
commit 0cd4997174

View File

@ -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) if(x >= w || y >= h || z >= d)
{ {
throw new RuntimeException(x + " " + y + " " + z + " exceeds limit of " + w + " " + h + " " + 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) if(block == null)
{ {