From f824bfd2e1a222494a7bbe92c38b6d1c01417cbf Mon Sep 17 00:00:00 2001 From: PrototypeTrousers Date: Thu, 10 Mar 2022 21:30:30 -0300 Subject: [PATCH] small optimization --- gradle.properties | 2 +- src/main/java/appeng/crafting/MECraftingInventory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 0dd0cb91d..1df2ba08d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ aebuild=7 aegroup=appeng aebasename=appliedenergistics2 extended=extended_life -extendedversion=v51 +extendedversion=v51b ######################################################### # Versions # ######################################################### diff --git a/src/main/java/appeng/crafting/MECraftingInventory.java b/src/main/java/appeng/crafting/MECraftingInventory.java index b83b0c446..379937498 100644 --- a/src/main/java/appeng/crafting/MECraftingInventory.java +++ b/src/main/java/appeng/crafting/MECraftingInventory.java @@ -138,7 +138,7 @@ public class MECraftingInventory implements IMEInventory this.localCache = new ItemListIgnoreCrafting<>( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() ); for( final IAEItemStack is : target.getStorageList() ) { - this.localCache.add( target.extractItems( is.copy().setStackSize( Long.MAX_VALUE ), Actionable.SIMULATE, src ) ); + this.localCache.add( target.extractItems( is, Actionable.SIMULATE, src ) ); } this.par = null;