Fixed crate text showing through walls
This commit is contained in:
parent
992cdee5e0
commit
051ae75ed3
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ public class RenderCrate extends TileEntitySpecialRenderer
|
||||||
for (int side = 2; side < 6; side++)
|
for (int side = 2; side < 6; side++)
|
||||||
{
|
{
|
||||||
ForgeDirection direction = ForgeDirection.getOrientation(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);
|
this.setupLight(tileEntity, direction.offsetX, direction.offsetZ);
|
||||||
|
|
||||||
if (itemStack != null)
|
if (itemStack != null)
|
||||||
|
|
Loading…
Reference in a new issue