Create Fabric

Create Fabric

10M Downloads

IndexOutOfBoundException in EMI compat

No3371 opened this issue ยท 2 comments

commented

Describe the Bug

EMI errors out when loading plugins, this only happens when the CreateAddition mod is installed.
I'm not sure but maybe that mod modified the recipes...
It seems like we can have some length check here so that it won't straight crash EMI:

input = List.of(EmiIngredient.of(recipe.getIngredients().get(0)),
			fluidStack(recipe.getRequiredFluid().getMatchingFluidStacks().get(0)));

Reproduction Steps

  1. Install Create.
  2. Install Create Addition.
  3. Install EMI.

Expected Result

EMI works normally.

Screenshots and Videos

No response

Crash Report or Log

https://hastebin.com/share/ihurosaqap.csharp

Operating System

Windows 10

Mod Version

0.5.0i

Minecraft Version

1.19.2

Other Mods

No response

Additional Context

No response

commented

I've been isolating my mods and it turns out the bug can not be reproduced with only these mods .
So being honest I haven't find the offender and the reason why it only happens when Create Addition is added to the original modpack.

commented

I found it's not this error crashing EMI, opening new issue.