Re-use the self-declared variable
This commit is contained in:
parent
efaa44a6f4
commit
9b18abdb3c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue