Fixed crate text showing through walls

This commit is contained in:
Brian Ricketts 2013-02-01 17:20:00 -06:00
parent 992cdee5e0
commit 051ae75ed3

View file

@ -45,6 +45,9 @@ public class RenderCrate extends TileEntitySpecialRenderer
for (int side = 2; side < 6; side++)
{
ForgeDirection direction = ForgeDirection.getOrientation(side);
boolean solid = tileEntity.worldObj.isBlockSolidOnSide(tileEntity.xCoord + direction.offsetX, tileEntity.yCoord, tileEntity.zCoord + direction.offsetZ, direction.getOpposite());
if (solid)
continue;
this.setupLight(tileEntity, direction.offsetX, direction.offsetZ);
if (itemStack != null)