Forge 1.19.3 - Appending items via CreativeTabRegistry "randomizes" the position in the tab
Lemonszz opened this issue ยท 2 comments
Using the CreativeTabRegistry to append RegistrySupplier or Item ends up up with them in a random position.
No issues on Fabric. Could be an issue with Forge, but I didn't see any reports on their repo.
Position seems to be random each time.
for(RegistrySupplier<Item> item : ItemHelper.getItems(Constants.MOD_ID))
{
CreativeTabRegistry.append(TAB, item);
}
Further Tests
Directly adding items
//Directly adding items
CreativeTabRegistry.append(TAB, BMItems.SCUTTLER_TAIL);
CreativeTabRegistry.append(TAB, BMItems.CYAN_PETALS);
CreativeTabRegistry.append(TAB, BMItems.BULBUS_ROOT);
CreativeTabRegistry.append(TAB, BMItems.COWBOY_HAT);
Vanilla Items
//Adding Vanilla Items
CreativeTabRegistry.append(TAB, Items.GLOW_INK_SAC);
CreativeTabRegistry.append(TAB, Items.INK_SAC);
CreativeTabRegistry.append(TAB, Items.ACACIA_BOAT);
CreativeTabRegistry.append(TAB, Items.GREEN_CANDLE);
Update: If you add items via the builder of the CreativeTab, then its order is retained.
For more information please check MinecraftForge/MinecraftForge#9192