Team-Resourceful / ResourcefulBees

Minecraft Mod for creating highly customized bees
https://www.resourcefulbees.com
GNU Lesser General Public License v3.0
75 stars 31 forks source link

Re-parse biomes that were registered after ResourcefulBees finishes loading #367

Closed achristoforides closed 1 year ago

achristoforides commented 1 year ago

This "fixes" an issue where biomes, that which were added and tagged correctly by other mods, were not properly being added to the whitelist/blacklist for all bees.

This happens because ResourcefulBees does all of its parsing/checking forge biome tags during construction. At that point in time, it is possible that other mods haven't registered their biomes yet so they never appear in a bees whitelist/blacklist.

This change does a full reparse of all the biome information and repopulates the whitelist/blacklist for each bee. This code only runs once.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.