First batch of null -> isEmpty() checks.

I most likely still missed a ton of checks...
This commit is contained in:
Gunther De Wachter
2017-06-26 05:15:25 +02:00
parent 370fc49357
commit da5879b667
117 changed files with 594 additions and 570 deletions
@@ -167,14 +167,14 @@ public class AppEngCraftingSlot extends AppEngSlot
final ItemStack itemstack1 = this.craftMatrix.getStackInSlot( i );
final ItemStack itemstack2 = aitemstack.get( i );
if( itemstack1 != null )
if( !itemstack1.isEmpty() )
{
this.craftMatrix.decrStackSize( i, 1 );
}
if( itemstack2 != null )
if( !itemstack2.isEmpty() )
{
if( this.craftMatrix.getStackInSlot( i ) == null )
if( this.craftMatrix.getStackInSlot( i ).isEmpty() )
{
this.craftMatrix.setInventorySlotContents( i, itemstack2 );
}