"Registry already frozen" when modifying hexcasting staff recipes
Wyrmlet opened this issue ยท 1 comments
Minecraft Version
1.20.1
KubeJS Version
2001.6.5-build.16
Rhino Version
2001.2.3-build.10
Architectury Version
9.2.14
Forge/Fabric Version
47.4.0
Describe your issue
When modifying staff recipes from Hexcasting to use items from GTCEu (balancing reasons) using this script, the game crashes with message "Registry is already frozen", but only sometimes, launching just fine on the second or third try. I suspect a race condition of some kind, probably something hyper-specific to these particular mods. Removing the parts of the script not related to generating recipes for staves removes the issue.
I have already created an issue on the hexcasting github page, and was directed here instead. Here's the link to the modpack used, if that is necessary.
Crash report/logs
Their registry steps are kinda odd, specially this freeze and unfreeze stuff, we don't do like that on Forge
This is called on the constructor, no wonder you have race conditions.