Fixed getOffsetX/Y/Z and bronze machines.

This commit is contained in:
Archengius 2017-01-04 16:54:47 +07:00 committed by GitHub
parent e040fcfa94
commit addc62f3a0

View file

@ -415,17 +415,17 @@ public abstract class BaseTileEntity extends TileEntity implements IHasWorldObje
@Override @Override
public int getOffsetX(byte aSide, int aMultiplier) { public int getOffsetX(byte aSide, int aMultiplier) {
return EnumFacing.VALUES[aSide].getFrontOffsetX() * aMultiplier; return getXCoord() + EnumFacing.VALUES[aSide].getFrontOffsetX() * aMultiplier;
} }
@Override @Override
public short getOffsetY(byte aSide, int aMultiplier) { public short getOffsetY(byte aSide, int aMultiplier) {
return (short) (EnumFacing.VALUES[aSide].getFrontOffsetY() * aMultiplier); return (short) (getYCoord() + EnumFacing.VALUES[aSide].getFrontOffsetY() * aMultiplier);
} }
@Override @Override
public int getOffsetZ(byte aSide, int aMultiplier) { public int getOffsetZ(byte aSide, int aMultiplier) {
return EnumFacing.VALUES[aSide].getFrontOffsetZ() * aMultiplier; return getZCoord() + EnumFacing.VALUES[aSide].getFrontOffsetZ() * aMultiplier;
} }