TheCBProject / CBMultipart

An API for dynamically handling different functional parts in the one block space.
Other
22 stars 27 forks source link

1.19.2 Option to get rid of the creative tab (also: Where is the 1.19 branch?) #158

Open Taschenmogul opened 7 months ago

Taschenmogul commented 7 months ago

I have found that registering large numbers of modded blocks as microblock materials in the custom-micromaterials.cfg file causes the mod Minecolonies to take a lot of time to start or load a world.

From my limited understanding this seems to be the case because Minecolonies searches the Creative Tabs for items to register:

https://github.com/ldtteam/minecolonies/blob/version/main/src/main/java/com/minecolonies/api/compatibility/CompatibilityManager.java#L680

Even just with CBMultipart, Minecolonies, Rechiseled and their dependencies installed and all 1136 Rechiseled blocks registered as microblock materials, it takes Minecolonies around half a minute to scan them all. With a full modpack and around 5000 registered microblock materials I was waiting for about ten minutes here!

Now my idea was to just quickly set up the CBMultipart 1.19.2 branch on my computer, cut out the few lines of code that register the creative tab, and see if this solves the problem for me. But now I can't even find that branch, since the master branch seems to be 1.20 already!

So my first question is: Where can I find that 1.19.2 branch? And if I can't fix this for myself via a quick and dirty hack, could you implement a config option to skip registering the microblocks to the creative tabs? Or maybe this is really a more complex issue on the end of Minecolonies? Sorry for being confusing here, but I'm not the best of coders and hadn't touched an IDE in a while.