prevent crash with derpy facades.

This commit is contained in:
AlgorithmX2 2014-05-11 17:01:48 -05:00
parent f4e685a0e8
commit 9f0e31b303

View file

@ -225,9 +225,14 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
public boolean useAlphaPass(ItemStack is)
{
ItemStack out = getTextureItem( is );
if ( out == null || out.getItem() == null )
return false;
Block blk = Block.getBlockFromItem( out.getItem() );
if ( blk != null && blk.canRenderInPass( 1 ) )
return true;
return false;
}