Port to 1.11

This commit is contained in:
yueh
2016-12-08 12:42:00 +01:00
parent 589730bfad
commit ed9e6dd21c
262 changed files with 4027 additions and 3954 deletions
@@ -156,7 +156,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
final ItemStack split = this.getStackInSlot( slot );
ItemStack ns = null;
if( qty >= split.stackSize )
if( qty >= split.getCount() )
{
ns = this.getStackInSlot( slot );
this.inv[slot] = null;
@@ -196,16 +196,16 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
if( oldStack != null && newItemStack != null && Platform.itemComparisons().isEqualItem( oldStack, newItemStack ) )
{
if( oldStack.stackSize > newItemStack.stackSize )
if( oldStack.getCount() > newItemStack.getCount() )
{
removed = removed.copy();
removed.stackSize -= newItemStack.stackSize;
removed.grow( -newItemStack.getCount() );
added = null;
}
else if( oldStack.stackSize < newItemStack.stackSize )
else if( oldStack.getCount() < newItemStack.getCount() )
{
added = added.copy();
added.stackSize -= oldStack.stackSize;
added.grow( -oldStack.getCount() );
removed = null;
}
else
@@ -246,7 +246,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
}
@Override
public boolean isUseableByPlayer( final EntityPlayer var1 )
public boolean isUsableByPlayer( final EntityPlayer var1 )
{
return true;
}