Changed to Null ItemStack instead of null.

This commit is contained in:
yueh
2016-12-21 20:27:23 +01:00
parent ed9e6dd21c
commit 1cde7bc933
36 changed files with 95 additions and 78 deletions
@@ -264,7 +264,7 @@ public class AdaptorIInventory extends InventoryAdaptor
{
if( itemsToAdd == null || itemsToAdd.getCount() == 0 )
{
return null;
return ItemStack.EMPTY;
}
final ItemStack left = itemsToAdd.copy();
@@ -292,7 +292,7 @@ public class AdaptorIInventory extends InventoryAdaptor
if( left.getCount() <= 0 )
{
return null;
return ItemStack.EMPTY;
}
}
else if( Platform.itemComparisons().isSameItem( is, left ) && is.getCount() < perOperationLimit )
@@ -310,7 +310,7 @@ public class AdaptorIInventory extends InventoryAdaptor
left.grow( -used );
if( left.getCount() <= 0 )
{
return null;
return ItemStack.EMPTY;
}
}
}