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
|
||||
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 */}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue