Replies: 2 comments 7 replies
-
Thanks for the feedback! Hmm, couldn't the config be checked in the provider? I.e. always register the provider, but return Using registries just feels like the logical thing to use for... registering things, so unless that's a hard no-go I feel it'd be nice if they could be leveraged for this? I definitely am open to have my mind changed here though, I'm probably a little out of touch when it comes to current best practices in MC modding nowadays. |
Beta Was this translation helpful? Give feedback.
-
After looking around a bit it seems like IE is the only mod that (still?) has config options to stop all compat code from loading, so I just implemented your suggested approach of always registering the IE/OC2 compat is mostly working now, but I ran into a second problem: |
Beta Was this translation helpful? Give feedback.
-
I wanted to add OC2 compat to Immersive Engineering and ran into the following annoying problem:
BlockDeviceProvider
(which then calls our shared code for CC and OC2 compat). Since this is a Forge registry I need to know if OC2 compat should be enabled before theRegistryEvent.Register
s fire.RegistryEvent.Register
s have been fired and the registries are fully locked.I don't think there's any good way to deal with this from IEs side: I could manually load the common config early, or make a new config file that doesn't go through Forge's system, but neither of those options is great. How much do you actually rely on
BlockDeviceProvider
s being a Forge registry? If you don't really need it making them a non-ForgeRegistry
would probably be the cleanest approach.Beta Was this translation helpful? Give feedback.
All reactions