fix: fixed tool stat bar sometimes showing strange label
@@ -114,7 +114,10 @@ public class GuiStatBar extends GuiStatBase {
double value;
double diffValue;
+ if (labelKey != null) {
labelString.setString(I18n.format(labelKey));
+ }
+ labelString.setVisible(labelKey != null);
if (!previewStack.isEmpty()) {
value = statGetter.getValue(player, currentStack);
