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
@@ -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 );
}