Port to 1.11
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user