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
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 */}
}
}