Skip to content

Commit

Permalink
Fixed tooltip on the server side
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed May 5, 2022
1 parent aef2b2e commit 43702cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle'

group = 'com.buuz135'
version = '1.18.2-0.0.13'
version = '1.18.2-0.0.14'

java {
archivesBaseName = 'functionalstorage'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.minecraft.network.chat.Style;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import org.jetbrains.annotations.Nullable;

import java.awt.*;
Expand Down Expand Up @@ -46,6 +48,7 @@ public boolean hasTooltipDetails(@Nullable BasicItem.Key key) {


@Override
@OnlyIn(Dist.CLIENT)
public Component getName(ItemStack p_41458_) {
Component component = super.getName(p_41458_);
if (component instanceof TranslatableComponent){
Expand Down

0 comments on commit 43702cd

Please sign in to comment.