iChunUtil

iChunUtil

93M Downloads

Crash with Night Config Fixes

iChun opened this issue ยท 0 comments

commented
java.lang.ClassCastException: class fuzs.nightconfigfixes.config.ConfigSpecWrapper cannot be cast to class net.minecraftforge.common.ForgeConfigSpec (fuzs.nightconfigfixes.config.ConfigSpecWrapper is in module [email protected] of loader 'TRANSFORMER' @4b708c16; net.minecraftforge.common.ForgeConfigSpec is in module [email protected] of loader 'TRANSFORMER' @4b708c16)
	at me.ichun.mods.ichunutil.loader.forge.config.ConfigHandlerForge.lambda$init$3(ConfigHandlerForge.java:174) ~[iChunUtil-1.20.1-Forge-1.0.0.jar%23690!/:1.20.1-Forge-1.0.0] {re:classloading}
	at me.ichun.mods.ichunutil.common.config.ConfigBase.save(ConfigBase.java:304) ~[iChunUtil-1.20.1-Forge-1.0.0.jar%23690!/:1.20.1-Forge-1.0.0] {re:classloading}
	at me.ichun.mods.cci.client.core.FirstRunAlertHandler$FirstRunToast.m_7172_(FirstRunAlertHandler.java:120) ~[ContentCreatorIntegration-1.20.1-Forge-1.12.1.jar%23605!/:1.20.1-Forge-1.12.1] {re:classloading}
	at net.minecraft.client.gui.components.toasts.ToastComponent$ToastInstance.m_280442_(ToastComponent.java:155) ~[client-1.20.1-20230612.114412-srg.jar%23894!/:?] 

cast to ForgeConfigSpec in modConfig.getSpec() without checking in save method lambda