Even more null fixes.

This commit is contained in:
Gunther De Wachter
2017-07-02 04:13:49 +02:00
parent c455ee69b8
commit eb0b304fd9
5 changed files with 11 additions and 11 deletions
@@ -108,7 +108,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, ITerminal
private final AppEngInternalInventory inv = new AppEngInternalInventory( this, 2 );
private final BaseActionSource mySrc = new MachineSource( this );
private final IConfigManager config = new ConfigManager( this );
private ItemStack storageType;
private ItemStack storageType = ItemStack.EMPTY;
private long lastStateChange = 0;
private int priority = 0;
private int state = 0;
@@ -242,7 +242,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
{
for( int x = 0; x < 6; x++ )
{
if( this.cells.getStackInSlot( x ) != null )
if( !this.cells.getStackInSlot( x ).isEmpty() )
{
return true;
}
@@ -572,7 +572,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
{
final ItemStack stackInSlot = this.upgrades.getStackInSlot( upgradeIndex );
if( stackInSlot != null )
if( !stackInSlot.isEmpty() )
{
drops.add( stackInSlot );
}