diff --git a/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityCrossingGate.java b/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityCrossingGate.java index 77e518ae..5d8de321 100644 --- a/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityCrossingGate.java +++ b/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityCrossingGate.java @@ -84,7 +84,12 @@ public MachineType getMachineType() { public AxisAlignedBB getRenderBoundingBox() { float[] box = this.getResourceState().getResourceSet().getConfig().renderAABB; return AxisAlignedBB.getBoundingBox( - this.xCoord + box[0], this.yCoord + box[1], this.zCoord + box[2], this.xCoord + box[3], this.yCoord + box[4], this.zCoord + box[5]); + this.xCoord + box[0] + this.getOffsetX(), + this.yCoord + box[1] + this.getOffsetY(), + this.zCoord + box[2] + this.getOffsetZ(), + this.xCoord + box[3] + this.getOffsetX(), + this.yCoord + box[4] + this.getOffsetY(), + this.zCoord + box[5] + this.getOffsetZ()); } @Override diff --git a/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityMachineBase.java b/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityMachineBase.java index 766ac40a..bab6d750 100644 --- a/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityMachineBase.java +++ b/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityMachineBase.java @@ -127,7 +127,13 @@ public double getMaxRenderDistanceSquared() { @Override @SideOnly(Side.CLIENT) public AxisAlignedBB getRenderBoundingBox() { - return AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord, this.zCoord, this.xCoord + 1, this.yCoord + 1, this.zCoord + 1); + return AxisAlignedBB.getBoundingBox( + this.xCoord + this.getOffsetX(), + this.yCoord + this.getOffsetY(), + this.zCoord + this.getOffsetZ(), + this.xCoord + 1 + this.getOffsetX(), + this.yCoord + 1 + this.getOffsetY(), + this.zCoord + 1 + this.getOffsetZ()); } public ModelSetMachine getModelSet() { diff --git a/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityPoint.java b/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityPoint.java index 44662386..2c9dcdb0 100644 --- a/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityPoint.java +++ b/src/main/java/jp/ngt/rtm/block/tileentity/TileEntityPoint.java @@ -55,7 +55,13 @@ public MachineType getMachineType() { @Override @SideOnly(Side.CLIENT) public AxisAlignedBB getRenderBoundingBox() { - return AxisAlignedBB.getBoundingBox(this.xCoord - 1, this.yCoord, this.zCoord - 1, this.xCoord + 2, this.yCoord + 1, this.zCoord + 2); + return AxisAlignedBB.getBoundingBox( + this.xCoord - 1 + this.getOffsetX(), + this.yCoord + this.getOffsetY(), + this.zCoord - 1 + this.getOffsetZ(), + this.xCoord + 2 + this.getOffsetX(), + this.yCoord + 1 + this.getOffsetY(), + this.zCoord + 2 + this.getOffsetZ()); } @Override