Protect AE2 from BC's shenanigans.

This commit is contained in:
AlgorithmX2
2014-06-03 20:32:33 -05:00
parent e6c80df3c8
commit 09ef3cc231
+2
View File
@@ -319,6 +319,7 @@ public class BC extends BaseModule implements IBC
if ( blk == null || blk.length < 1 ) if ( blk == null || blk.length < 1 )
return null; return null;
if ( blk[0] != null )
return new ItemStack( blk[0], 1, meta[0] ); return new ItemStack( blk[0], 1, meta[0] );
} }
catch (Throwable t) catch (Throwable t)
@@ -329,6 +330,7 @@ public class BC extends BaseModule implements IBC
try try
{ {
Block blk = ItemFacade.getBlock( facade ); Block blk = ItemFacade.getBlock( facade );
if ( blk != null )
return new ItemStack( blk, 1, ItemFacade.getMetaData( facade ) ); return new ItemStack( blk, 1, ItemFacade.getMetaData( facade ) );
} }
catch (Throwable t) catch (Throwable t)