recalculateRecipe
uses different dummy object for matching validation
#7022
Labels
Milestone
recalculateRecipe
uses different dummy object for matching validation
#7022
Issue description:
In connection with the ImmersiveEngineering mod (e.g. in Valhelsia) it can come to an exception in server startup:
This seems to be caused by the fact that
getRemainingItems
is called, even thoughformula.recipe.matches(dummyInv, world)
would have returnednull
- theformula.matches
method does validate this, but it uses a differentdummy
entity. This should be solved by replacing line 300 with:even though one might argue that that isn't such a clean solution.
Steps to reproduce:
Version (make sure you are on the latest version before reporting):
Forge: forge-1.16.5-36.0.15.jar
Mekanism: Mekanism-1.16.4-10.0.19.446.jar
Other relevant version: ImmersiveEngineering-1.16.5-4.2.1-131.jar
Mods: https://pastebin.com/u0sLiUdJ -- this is exactly (without additions, deletions or replacements) the modlist included in Valhelsia 3.1.8a, see https://www.curseforge.com/minecraftmodpacks/valhelsia-3/files/3198587
Also, this corresponding issue for ImmersiveEngineering might be of interest.
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
pastebin
The text was updated successfully, but these errors were encountered: