You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.21.1 Neoforge 21.1.250 - registerReloadListener called on wrong thread #475
I'm playing on a modified version of all of create aeronautics with codechickenlib, project red and ender storage being part of the modified mod list, me and my friends will get random occasional crashes in early loading of the modpack with this error:
[ModernFix/]: A mod is calling registerReloadListener at the wrong time. This will cause random concurrency crashes when ModernFix is not installed. Please report this to them. If you are a modder, refer to https://github.com/embeddedt/ModernFix/wiki/registerReloadListener-called-on-wrong-thread for more information. java.lang.Exception: registerReloadListener called on wrong thread at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.packs.resources.ReloadableResourceManager.wrapMethod$zml000$modernfix$checkCallingThread(ReloadableResourceManager.java:536) ~[client-1.21.1-20240808.144430-srg.jar%23501!/:?] at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.packs.resources.ReloadableResourceManager.registerReloadListener(ReloadableResourceManager.java) ~[client-1.21.1-20240808.144430-srg.jar%23501!/:?] at TRANSFORMER/codechickenlib@4.6.1.529/codechicken.lib.util.ResourceUtils.registerReloadListener(ResourceUtils.java:57) ~[CodeChickenLib-1.21.1-4.6.1.529.jar%23546!/:4.6.1.529] at TRANSFORMER/projectred_core@4.23.0/mrtjp.projectred.core.init.CoreClientInit.clientSetup(CoreClientInit.java:43) ~[ProjectRed-1.21.1-4.23.0-core.jar%23743!/:?] ...... [03Oct2026 12:38:35.390] [Render thread/ERROR] [net.neoforged.bus.EventBus/EVENTBUS]: Exception caught during firing event: null
It seems like there's a chance that codechickenlib/project red will cause a Concurrent Modification Exception, and ModernFix is saying that the listener might be the cause.
It's not a consistent crash though, sometimes it loads and runs fine, other times crashes on load. Let me know if you need any other details. (This is a crash I've been reported has happened to many of my friends playing)
I believe @MrTJP will need to mitigate this ProjectRed side.
ResourceUtils.registerReloadListener is from a time where adding listeners didnt require an event. It was deleted in a recent port and should not be used on 1.20.1 or 1.21.1.
Activity
covers1624 commentedon Oct 6, 2026
I believe @MrTJP will need to mitigate this ProjectRed side.
ResourceUtils.registerReloadListeneris from a time where adding listeners didnt require an event. It was deleted in a recent port and should not be used on 1.20.1 or 1.21.1.