mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
Support signed positions for jigsaw
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user