From c9a2848cdfb5f1fa54005cf76a24698a06a5f323 Mon Sep 17 00:00:00 2001 From: sisby-folk Date: Tue, 26 Nov 2024 17:36:48 +1100 Subject: [PATCH] nicen shift tooltip for empty named cards --- .../scatteredshards/client/screen/widget/WMiniShard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/modfest/scatteredshards/client/screen/widget/WMiniShard.java b/src/main/java/net/modfest/scatteredshards/client/screen/widget/WMiniShard.java index 608333c..7bdc411 100644 --- a/src/main/java/net/modfest/scatteredshards/client/screen/widget/WMiniShard.java +++ b/src/main/java/net/modfest/scatteredshards/client/screen/widget/WMiniShard.java @@ -84,7 +84,7 @@ public void paint(DrawContext context, int x, int y, int mouseX, int mouseY) { @Override public void addTooltip(TooltipBuilder tooltip) { - if (ScatteredShardsClient.hasShiftDown()) { + if (ScatteredShardsClient.hasShiftDown() && !shard.name().getString().isBlank()) { tooltip.add(shard.name()); } tooltip.add(ShardType.getDescription(shard.shardTypeId()).copy().withColor(shardType.textColor()));