From 9f0e31b303913f02da97fcd379d4fdedcc769485 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 11 May 2014 17:01:48 -0500 Subject: [PATCH] prevent crash with derpy facades. --- items/parts/ItemFacade.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/items/parts/ItemFacade.java b/items/parts/ItemFacade.java index 947dd5d4..2753c69e 100644 --- a/items/parts/ItemFacade.java +++ b/items/parts/ItemFacade.java @@ -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; }