Illegal access error for ModelManager
Closed this issue · 2 comments
Describe the bug
Upon using the API and running error occurs relating to the following...
Exception caught during firing event net.minecraftforge.client.event.TextureStitchEvent$Pre@6a178850:
java.lang.IllegalAccessError: tried to access field net.minecraft.client.Minecraft.modelManager from class git.jbredwards.fluidlogged_api.mod.client.ClientEventHandler
Looking into it, IT is reporting that Minecraft.getMinecraft().modelManager
on line 43 of ClientEventHandler.java "'ModelManager' has private access in 'net.minecraft.client.Minecraft'"
It is using commit hash 9a0e692
To Reproduce
Steps to reproduce the behavior:
- add the relative info into build.gradle for fluidlogger api
- click on build
- then attempt to run
- See error
Expected behavior
- add the relative info into build.gradle for fluidlogger api
- click on build
- then attempt to run
- See main menu
Logs
https://gist.github.com/Jimbologo/1d2fe8ff55297c0256e41d6316896ffe
Additional context
none
I see legacydev
in your stack trace, are you using FG5? AFAIK it doesn't apply access transformers from dependencies (which causes many issues). You should probably set up FancyGradle.
as embeddedt mentioned above, FG3+ doesn't correctly apply access transformers from dependencies, use FG 2.3 or FancyGradle