Closed KiyoGawaKG closed 1 year ago
I posted a "fix" to moonflower's Discord server yesterday, but haven't yet received a response.
I changed the !=
on this line to ==
.
That fixed the grindstone itself, but not the JEI integration - JEI's grindstone recipes remain blank.
[12:25:25] [Render thread/ERROR]: Error caught from Recipe Category: pollen:grindstone java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at java.util.Arrays$ArrayList.get(Arrays.java:4165) ~[?:?] at net.minecraft.core.NonNullList.get(NonNullList.java:47) ~[client-1.18.2-20220404.173914-srg.jar%2362!/:?] at gg.moonflower.pollen.core.forge.compat.jei.PollenGrindstoneCategory.setRecipe(PollenGrindstoneCategory.java:81) ~[pollen-forge-1.6.0+1.18.2.jar%2361!/:?] at gg.moonflower.pollen.core.forge.compat.jei.PollenGrindstoneCategory.setRecipe(PollenGrindstoneCategory.java:31) ~[pollen-forge-1.6.0+1.18.2.jar%2361!/:?]
This is a part of the exception. It is ArrayIndexOutOfBoundsException. The index of the ingredients list is out of range. So I think we can replace create() in line 41 of PollenShapelessGrindstoneRecipe.java with createWithCapacity (2). Due to some packaging problems, I can't test this fix, but maybe it can fix jei's blank problemThis is my suggestion.
Fixed in 1.6.1
What version are you seeing the problem on?
1.18.2
Describe the issue
latest.log