From addc62f3a0e5f33bf72552d1b0c106b6fafe2976 Mon Sep 17 00:00:00 2001 From: Archengius Date: Wed, 4 Jan 2017 16:54:47 +0700 Subject: [PATCH] Fixed getOffsetX/Y/Z and bronze machines. --- .../java/gregtech/api/metatileentity/BaseTileEntity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java b/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java index fc613da8..e31d96cc 100644 --- a/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/BaseTileEntity.java @@ -415,17 +415,17 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje @Override public int getOffsetX(byte aSide, int aMultiplier) { - return EnumFacing.VALUES[aSide].getFrontOffsetX() * aMultiplier; + return getXCoord() + EnumFacing.VALUES[aSide].getFrontOffsetX() * aMultiplier; } @Override public short getOffsetY(byte aSide, int aMultiplier) { - return (short) (EnumFacing.VALUES[aSide].getFrontOffsetY() * aMultiplier); + return (short) (getYCoord() + EnumFacing.VALUES[aSide].getFrontOffsetY() * aMultiplier); } @Override public int getOffsetZ(byte aSide, int aMultiplier) { - return EnumFacing.VALUES[aSide].getFrontOffsetZ() * aMultiplier; + return getZCoord() + EnumFacing.VALUES[aSide].getFrontOffsetZ() * aMultiplier; } @@ -489,4 +489,4 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje @Override public void markDirty() {/* Do not do the super Function */} -} \ No newline at end of file +}