"Failed to find a RegistryModule for that type" -world creation error [SOLVED]

Goddnabmit. Yes, another world creation problem

I’m currently running
Forge build: 1.8.9-11.15.1.1902
Sponge build: 1.8.9-1890-4.2.0-BETA-1653

This is the error I get from the console:

And it seems to be failing when I try to register my world gen modifier:
https://github.com/El-minadero/OreVeins/blob/Remastered/OreVeins/src/main/java/net/kevinmendoza/oreveins/master/OreVeinsMain.java#L199

I believe I’ve implemented the modifier as per the docs just fine, but I could be wrong:
https://github.com/El-minadero/OreVeins/blob/Remastered/OreVeins/src/main/java/net/kevinmendoza/oreveins/worldhooks/OverWorldModifier.java

So what am I doing wrong here?

If there’s no RegistryModule available, make your own. For example, Currency has no registry module despite being a catalog type, so that plugins can control registration. Here’s an example of that in action.

So, prior to 4.1, I didn’t have to make my own registry. Is this something new to the API?

You need to pass in the class of WorldGeneratorModifier.class as that is the category you are registering for.

Yep that turned out to be it!
@pie_flavor’s solution worked too, but I’m not yet able to verify if it also modifies the world as I thought it did, plugin’s too early in dev.

My bad, that won’t work. Didn’t read the post properly.