Skip to content

Commit

Permalink
Fix CreativeModeTab
Browse files Browse the repository at this point in the history
  • Loading branch information
TheidenHD committed Apr 27, 2024
1 parent 0d02ed0 commit d39c42a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/vazkii/psi/common/core/PsiCreativeTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit d39c42a

Please sign in to comment.