Fix facade recipes. Hopefully the last null check fix.

This commit is contained in:
Gunther De Wachter
2017-06-27 20:39:06 +02:00
parent b819fe4adb
commit 61b81fc802
52 changed files with 101 additions and 83 deletions
@@ -254,9 +254,9 @@ public class TileVibrationChamber extends AENetworkInvTile implements IGridTicka
is.grow( -1 );
if( is.getCount() <= 0 )
{
ItemStack container = null;
ItemStack container = ItemStack.EMPTY;
if( is.getItem() != null && is.getItem().hasContainerItem( is ) )
if( is.getItem() != Items.AIR && is.getItem().hasContainerItem( is ) )
{
container = is.getItem().getContainerItem( is );
}
@@ -265,7 +265,7 @@ public class TileDrive extends AENetworkInvTile implements IChestOrDrive, IPrior
@Override
public boolean isItemValidForSlot( final int i, final ItemStack itemstack )
{
return itemstack != null && AEApi.instance().registries().cell().isCellHandled( itemstack );
return !itemstack.isEmpty() && AEApi.instance().registries().cell().isCellHandled( itemstack );
}
@Override