Fixed getOffsetX/Y/Z and bronze machines.
This commit is contained in:
parent
e040fcfa94
commit
addc62f3a0
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue