From d39c42a5c5dbde6db2e3a47911a8ffaa923c0bb0 Mon Sep 17 00:00:00 2001 From: TheidenHD Date: Sat, 27 Apr 2024 23:20:47 +0200 Subject: [PATCH] Fix CreativeModeTab --- src/main/java/vazkii/psi/common/core/PsiCreativeTab.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/vazkii/psi/common/core/PsiCreativeTab.java b/src/main/java/vazkii/psi/common/core/PsiCreativeTab.java index 56f07f8f..85fa0bd2 100644 --- a/src/main/java/vazkii/psi/common/core/PsiCreativeTab.java +++ b/src/main/java/vazkii/psi/common/core/PsiCreativeTab.java @@ -9,6 +9,7 @@ package vazkii.psi.common.core; import net.minecraft.core.registries.Registries; +import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.CreativeModeTab; @@ -31,7 +32,7 @@ public class PsiCreativeTab { @SubscribeEvent public static void register(RegisterEvent evt) { evt.register(Registries.CREATIVE_MODE_TAB, creativeModeTabRegisterHelper -> { - CreativeModeTab psiCreativeTab = CreativeModeTab.builder() + CreativeModeTab psiCreativeTab = CreativeModeTab.builder().title(Component.translatable("itemGroup.psi")) .icon(() -> new ItemStack(ModItems.cadAssemblyIron)) .displayItems((parameters, output) -> { output.accept(ModItems.psidust);