Fix DhBlockPos mutable methods

This commit is contained in:
James Seibel
2023-08-31 19:01:57 -05:00
parent 3148991667
commit 7ac562c5e9
@@ -151,7 +151,7 @@ public class DhBlockPos
}
else
{
return new DhBlockPos(this.x + x, this.y + y, this.z + z);
return new DhBlockPos(newX, newY, newZ);
}
}
@@ -177,7 +177,8 @@ public class DhBlockPos
if (mutableBlockPos != null)
{
mutableBlockPos.x = relX;
mutableBlockPos.z = relX;
mutableBlockPos.y = this.y;
mutableBlockPos.z = relZ;
return mutableBlockPos;
}