From 9f75b1d13967a7fee94b39da61fac361ae3170fa Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Thu, 5 Oct 2023 00:37:20 +0800 Subject: fix assline util not loading 16th item input from the stick (#2323) --- src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/gregtech/api') diff --git a/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java b/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java index 1eba5c843c..1ada9c78d5 100644 --- a/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java +++ b/src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java @@ -78,9 +78,9 @@ public class GT_AssemblyLineUtils { if (!isItemDataStick(aDataStick) || !doesDataStickHaveOutput(aDataStick)) { return LookupResultType.INVALID_STICK.getResult(); } - List aInputs = new ArrayList<>(15); + List aInputs = new ArrayList<>(16); ItemStack aOutput = getDataStickOutput(aDataStick); - List> mOreDictAlt = new ArrayList<>(15); + List> mOreDictAlt = new ArrayList<>(16); List aFluidInputs = new ArrayList<>(4); NBTTagCompound aTag = aDataStick.getTagCompound(); @@ -96,7 +96,7 @@ public class GT_AssemblyLineUtils { } // else: no cache, or the old recipe run into a hash collision with a different new recipe } - for (int i = 0; i < 15; i++) { + for (int i = 0; i < 16; i++) { int count = aTag.getInteger("a" + i); if (!aTag.hasKey("" + i) && count <= 0) { continue; -- cgit