diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2023-10-05 00:37:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-05 00:37:20 +0800 |
commit | 9f75b1d13967a7fee94b39da61fac361ae3170fa (patch) | |
tree | 429ea79bfa6c5a9882e3a64e59778340b3100196 /src/main | |
parent | 75ebf863f50773841a06076444911acd6b1f82e8 (diff) | |
download | GT5-Unofficial-9f75b1d13967a7fee94b39da61fac361ae3170fa.tar.gz GT5-Unofficial-9f75b1d13967a7fee94b39da61fac361ae3170fa.tar.bz2 GT5-Unofficial-9f75b1d13967a7fee94b39da61fac361ae3170fa.zip |
fix assline util not loading 16th item input from the stick (#2323)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_AssemblyLineUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<ItemStack> aInputs = new ArrayList<>(15); + List<ItemStack> aInputs = new ArrayList<>(16); ItemStack aOutput = getDataStickOutput(aDataStick); - List<List<ItemStack>> mOreDictAlt = new ArrayList<>(15); + List<List<ItemStack>> mOreDictAlt = new ArrayList<>(16); List<FluidStack> 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; |