Protect AE2 from BC's shenanigans.
This commit is contained in:
parent
e6c80df3c8
commit
09ef3cc231
1 changed files with 4 additions and 2 deletions
|
@ -319,7 +319,8 @@ public class BC extends BaseModule implements IBC
|
|||
if ( blk == null || blk.length < 1 )
|
||||
return null;
|
||||
|
||||
return new ItemStack( blk[0], 1, meta[0] );
|
||||
if ( blk[0] != null )
|
||||
return new ItemStack( blk[0], 1, meta[0] );
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
|
@ -329,7 +330,8 @@ public class BC extends BaseModule implements IBC
|
|||
try
|
||||
{
|
||||
Block blk = ItemFacade.getBlock( facade );
|
||||
return new ItemStack( blk, 1, ItemFacade.getMetaData( facade ) );
|
||||
if ( blk != null )
|
||||
return new ItemStack( blk, 1, ItemFacade.getMetaData( facade ) );
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue