tterrag1098 / Registrate

Your mod's best friend - keep your registry objects simple and organized
Mozilla Public License 2.0
114 stars 32 forks source link

[1.20.1] Creative menu items registered through Registrate will randomize order every time Minecraft is relaunched #65

Open TelepathicGrunt opened 10 months ago

TelepathicGrunt commented 10 months ago

This issue is easily seen by playing with Tropicraft. Launch the game. Check the order of their items in the creative menu. Then close game and relaunch. Notice the order is different.

Tropicraft specifies their creative tab here to Registrates https://github.com/Tropicraft/Tropicraft/blob/e5d50a20cb027f14870d1789ea5e5b643b1ebbc4/src/main/java/net/tropicraft/Tropicraft.java#L76

The multimap here seems like it could be the issue as the map is not ordered. Ideally, the items would show in the creative tab in the same order that they were registered in as most mods usually register similar items together https://github.com/tterrag1098/Registrate/blob/1.20/src/main/java/com/tterrag/registrate/AbstractRegistrate.java#L1831