From 16852ab1b50fab297b62d97770a1fbc35dd7cbe3 Mon Sep 17 00:00:00 2001 From: stal111 Date: Wed, 9 Aug 2023 23:20:05 +0200 Subject: [PATCH] Fix creative tab not registering --- .../forbidden_arcanus/core/init/other/ModCreativeModeTabs.java | 2 +- .../forbidden_arcanus/core/registry/ModRegistryCollector.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/stal111/forbidden_arcanus/core/init/other/ModCreativeModeTabs.java b/src/main/java/com/stal111/forbidden_arcanus/core/init/other/ModCreativeModeTabs.java index fd70843e7..c8d0158d3 100644 --- a/src/main/java/com/stal111/forbidden_arcanus/core/init/other/ModCreativeModeTabs.java +++ b/src/main/java/com/stal111/forbidden_arcanus/core/init/other/ModCreativeModeTabs.java @@ -21,7 +21,7 @@ public class ModCreativeModeTabs implements RegistryClass { public static final RegistryEntry MAIN = HELPER.register("main", CreativeTabFactory.create(builder -> { builder.icon(() -> new ItemStack(ModBlocks.HEPHAESTUS_FORGE.get())) - .title(Component.translatable("itemGroup.valhelsia_furniture")) + .title(Component.translatable("itemGroup.forbidden_arcanus")) .displayItems((itemDisplayParameters, output) -> { ForbiddenArcanus.REGISTRY_MANAGER.getItemHelper().getRegistryEntries().forEach(entry -> { output.accept(entry.get()); diff --git a/src/main/java/com/stal111/forbidden_arcanus/core/registry/ModRegistryCollector.java b/src/main/java/com/stal111/forbidden_arcanus/core/registry/ModRegistryCollector.java index b10b77360..cb107c30c 100644 --- a/src/main/java/com/stal111/forbidden_arcanus/core/registry/ModRegistryCollector.java +++ b/src/main/java/com/stal111/forbidden_arcanus/core/registry/ModRegistryCollector.java @@ -45,6 +45,7 @@ protected void collectHelpers() { this.addMappedHelper(FARegistries.ENHANCER_EFFECT, ModEnhancerEffects::new); this.addMappedHelper(FARegistries.ENHANCER_EFFECT_CONDITION, ModEnhancerEffectConditions::new); this.addMappedHelper(FARegistries.FORGE_INPUT_TYPE, ModForgeInputTypes::new); + this.addMappedHelper(Registries.CREATIVE_MODE_TAB, ModCreativeModeTabs::new); this.addDatapackHelper(Registries.STRUCTURE, ModStructures::new); this.addDatapackHelper(Registries.STRUCTURE_SET, ModStructureSets::new);