prevent crash with derpy facades.
This commit is contained in:
@@ -225,9 +225,14 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
|
|||||||
public boolean useAlphaPass(ItemStack is)
|
public boolean useAlphaPass(ItemStack is)
|
||||||
{
|
{
|
||||||
ItemStack out = getTextureItem( is );
|
ItemStack out = getTextureItem( is );
|
||||||
|
|
||||||
|
if ( out == null || out.getItem() == null )
|
||||||
|
return false;
|
||||||
|
|
||||||
Block blk = Block.getBlockFromItem( out.getItem() );
|
Block blk = Block.getBlockFromItem( out.getItem() );
|
||||||
if ( blk != null && blk.canRenderInPass( 1 ) )
|
if ( blk != null && blk.canRenderInPass( 1 ) )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user