Removes creating a ItemStack with a full NBT copy
There is no need to create a full copy just to fetch the already available stacksize. It still respects the maximum stacksize of Integer.MAX_VALUE as they copy is doing. Fixes #982
This commit is contained in:
@@ -481,8 +481,7 @@ public class CellInventory implements ICellInventory
|
|||||||
if ( request == null )
|
if ( request == null )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
ItemStack sharedItem = request.getItemStack();
|
long size = Math.min( Integer.MAX_VALUE, request.getStackSize() );
|
||||||
int size = sharedItem.stackSize;
|
|
||||||
|
|
||||||
IAEItemStack Results = null;
|
IAEItemStack Results = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user