Re-use the self-declared variable

This commit is contained in:
thatsIch 2014-10-31 18:01:49 +01:00
parent efaa44a6f4
commit 9b18abdb3c

View file

@ -307,7 +307,7 @@ public class RenderBlockCraftingCPU extends BaseBlockRender
final int tileYPos = y + side.offsetY;
if ( 0 <= tileYPos && tileYPos <= 255)
{
final TileEntity tile = w.getTileEntity( x + side.offsetX, y + side.offsetY, z + side.offsetZ );
final TileEntity tile = w.getTileEntity( x + side.offsetX, tileYPos, z + side.offsetZ );
return tile instanceof TileCraftingTile;
}