EMI

EMI

1M Downloads

EMI error registering brewing recipes with newer NeoForge

pupnewfster opened this issue ยท 1 comments

commented

Version: 1.21 - 1.1.7
NeoForge version: 21.0.31-beta (though I think this is the case in 21.0.26-beta and up)

When we cleaned up some ATs in neoforged/NeoForge@09ab121 it seems that one EMI was using got removed. Given it is a record, you can just switch to querying the method rather than the internal field of the potion mix.

java.lang.IllegalAccessError: class dev.emi.emi.platform.neoforge.EmiAgnosNeoForge tried to access private field net.minecraft.world.item.alchemy.PotionBrewing$Mix.ingredient (dev.emi.emi.platform.neoforge.EmiAgnosNeoForge is in module [email protected]+1.21+neoforge of loader 'TRANSFORMER' @580fd26b; net.minecraft.world.item.alchemy.PotionBrewing$Mix is in module [email protected] of loader 'TRANSFORMER' @580fd26b)
	at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.platform.neoforge.EmiAgnosNeoForge.addBrewingRecipesAgnos(EmiAgnosNeoForge.java:149)
	at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.platform.EmiAgnos.addBrewingRecipes(EmiAgnos.java:90)
	at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.VanillaPlugin.lambda$register$29(VanillaPlugin.java:463)
	at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.VanillaPlugin.safely(VanillaPlugin.java:829)
	at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.VanillaPlugin.register(VanillaPlugin.java:463)
	at TRANSFORMER/[email protected]+1.21+neoforge/dev.emi.emi.runtime.EmiReloadManager$ReloadWorker.run(EmiReloadManager.java:185)
	at java.base/java.lang.Thread.run(Thread.java:1583)
commented

Fixed in 1.1.8