Powah!

Powah!

19M Downloads

[1.15.1/?] Feature registration happening during synchronous event leading to potential race condition

noobanidus opened this issue · 3 comments

commented

As far as I can tell, IFeatures.register is only called from the FMLCommonSetupEvent, which, as far as I'm aware, is still part of the asynchronous event chain.

This can lead to the possibility of features being registered for all biomes, before all biomes have actually been registered, meaning some biomes do not have ores, etc, generated in them.

Moving this call to a FMLLoadCompleteEvent would, I believe, solve this situation.

commented

You know, I was literally explaining the issue to someone in a DM and they asked me to file the issue as I understood it more and I completely forgot to mention that you were using the wrong Biome registry, whoops! My bad, sorry.

commented

No problem, BTW, Thank you ♥

commented

i think i found the problem, i'm using Biome.BIOMES instead i sould use ForgeRegistries.BIOMES