Skip to content

Commit

Permalink
fix creative tab
Browse files Browse the repository at this point in the history
  • Loading branch information
a0a7 authored Nov 13, 2023
1 parent 05caa36 commit 323ac3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public final class CITab {

public static final AllCreativeModeTabs.TabInfo INTERIORS_TAB = register("base",
() -> FabricItemGroup.builder()
.title(Component.translatable("itemGroup.create.base"))
.title(Component.translatable("itemGroup.interiors"))
.icon(() -> CIBlocks.CHAIRS.get(DyeColor.RED).asStack())
.build());

private static AllCreativeModeTabs.TabInfo register(String name, Supplier<CreativeModeTab> supplier) {
ResourceLocation id = Create.asResource(name);
ResourceLocation id = new ResourceLocation(CreateInteriors.ID);
ResourceKey<CreativeModeTab> key = ResourceKey.create(Registries.CREATIVE_MODE_TAB, id);
CreativeModeTab tab = supplier.get();
Registry.register(BuiltInRegistries.CREATIVE_MODE_TAB, key, tab);
Expand Down

0 comments on commit 323ac3f

Please sign in to comment.