RenderLayer binding crashes startup
AbsolemJackdaw opened this issue · 4 comments
Mod loader
Forge
Minecraft version
1.18.2
Mod version
6.1.1
Modloader version
40.1.46
Modpack info
No response
If bug:
- Can you reproduce this issue with relevant mods only?
If bug: The latest.log file
No response
Issue description
[00:04:07] [main/ERROR] [ne.mi.fm.ja.FMLModContainer/]: Exception caught during firing event: Render layers can only be set during client loading! This might ideally be done from `FMLClientSetupEvent`.
Index: 1
Listeners:
0: NORMAL
1: ASM: class snownee.kiwi.KiwiModules handleRegister(Lnet/minecraftforge/event/RegistryEvent$Register;)V
java.lang.IllegalStateException: Render layers can only be set during client loading! This might ideally be done from `FMLClientSetupEvent`.
I'm trying to add compatibility with your mod and am using cursemaven to use your mod as a runtimeonly compile.
when i try to launch my client, i get a crash and it basically tells that the kiwi mod is incorrectly registering their layers.
edit: ive also got fruit trees as a runtime only compile if that is of any interest.
https://www.toptal.com/developers/hastebin/sijisuxaqa.sql
It only happens when I launch the data gen from forge. i can start the client just fine.
this is in my gradle build file
dependencies{
runtimeOnly fg.deobf("curse.maven:kiwi-303657:3817086")
runtimeOnly fg.deobf("curse.maven:fruit-trees-355467:3756371")
}
repositories { //all of these are for adding crates compat
mavenLocal()
maven {
name = 'Curse Maven'
url = 'https://cursemaven.com'
content {
includeGroup 'curse.maven'
}
}
}
here's the full gradle file
https://github.com/ArtixAllMighty/AppleCrates/blob/1.18/Forge/build.gradle
it seems to be related to this
Kiwi/src/main/java/snownee/kiwi/KiwiModules.java
Lines 42 to 44 in 9553714
where you call moduleinfo#handleRegister, in which you bind layers.
the call is made in the block registry event, while the layers should best be set in the fmlclientsetupevent
https://www.curseforge.com/minecraft/mc-mods/kiwi/files/3827373
it is under review