Closed copygirl closed 2 years ago
When setting
generateDirtBucketRecipes
tofalse
, the setting is ignored until/reload
is run once. I have a hunch that the world config is loaded only after the recipes are already registered.
Yeah. The world config is probably not loaded until after datapack loading. I've come up with two potential solutions:
Which do you think is the best solution for your use-case? I can't see a real use for this option outside of changing recipes in bulk for a modpack, so perhaps the former is sufficient.
I find the per-world config more annoying than useful.
As a modpack creator, it creates more headache than necessary. First of all the settings are in an odd place, only generated when you create a world. Then, say you find an issue with a config setting that can cause the game to crash. When you fix it, you have no way of updating the already-created per-world server config - at least not without the use of a mod.
Per-world config could perhaps be done with gamerules? That would at least work for simple options. Not sure if gamerules are available before the recipes are loaded either, though. I would definitely not put the setting in two places, with one only loaded in specific circumstances.
Yeah. That was meant as more of a workaround solution in case anyone was adamant about having per-world configs, but I guess it doesn’t really solve that problem for per-world configs anyway thinking on it again. I’ll go ahead with the first solution.
Interestingly enough, the inability to change this setting basically causes my modpack to crash when I removed all the recipes from the game using KubeJS. I had to build a custom version of Dynamic Trees which moved it over to common config.
OK. Apologies for my lack of promptness on such a simple change, I've just been busy recently. Feel free to submit a PR for it if you'd like.
Description
When setting
generateDirtBucketRecipes
tofalse
, the setting is ignored until/reload
is run once. I have a hunch that the world config is loaded only after the recipes are already registered.To Reproduce
defaultconfigs
generateDirtBucketRecipes
tofalse
/reload
Screenshots
Mods List
25 mods The modpack is also on GitHub. (Also reproducible with just DT.)
Versions
1.16.5-0.10.0-Beta24
36.2.2
1.8.0_292
Arch Linux