mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-21 04:32:21 +00:00
Fixes #1118 Does not crash with invalid ItemStacks anymore
This commit is contained in:
1 parent
67d9a48d75
commit
2a89bdf52a
10 files changed
+1077
-1068
No files matched your search
@@ -40,10 +40,9 @@ public class RenderBlockInterface extends BaseBlockRender
|
||||
public boolean renderInWorld(AEBaseBlock block, IBlockAccess world, int x, int y, int z, RenderBlocks renderer)
|
||||
{
|
||||
TileInterface ti = block.getTileEntity( world, x, y, z );
|
||||
|
||||
BlockRenderInfo info = block.getRendererInstance();
|
||||
|
||||
if ( ti.getForward() != ForgeDirection.UNKNOWN )
|
||||
if ( ti != null && ti.getForward() != ForgeDirection.UNKNOWN )
|
||||
{
|
||||
IIcon side = ExtraBlockTextures.BlockInterfaceAlternateArrow.getIcon();
|
||||
info.setTemporaryRenderIcons( ExtraBlockTextures.BlockInterfaceAlternate.getIcon(), block.getIcon( 0, 0 ), side, side, side, side );
|
||||
|
||||
Reference in new issue
Block a user