bamboo chest rendering
cbaakman opened this issue ยท 2 comments
The double bamboo chest sometimes turns invisible. It happens when the first placed block is in the screen, but the second placed block isn't.
It helps to extend the render bounding box for large chests:
public class TileEntityBambooChest extends TileEntityChest {
..
+ @Override
+ public AxisAlignedBB getRenderBoundingBox ()
+ {
+ checkForAdjacentChests();
+ if (this.adjacentChestZPos != null)
+ {
+ return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 2);
+ }
+ else if (this.adjacentChestXPos != null)
+ {
+ return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 2, yCoord + 1, zCoord + 1);
+ }
+ else
+ {
+ return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 1);
+ }
+ }
}
Fixed in #104