Skip to content

Commit c9a2848

Browse files
committed
nicen shift tooltip for empty named cards
1 parent 8d862f3 commit c9a2848

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/net/modfest/scatteredshards/client/screen/widget

1 file changed

+1
-1
lines changed

src/main/java/net/modfest/scatteredshards/client/screen/widget/WMiniShard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void paint(DrawContext context, int x, int y, int mouseX, int mouseY) {
8484
@Override
8585
public void addTooltip(TooltipBuilder tooltip) {
8686

87-
if (ScatteredShardsClient.hasShiftDown()) {
87+
if (ScatteredShardsClient.hasShiftDown() && !shard.name().getString().isBlank()) {
8888
tooltip.add(shard.name());
8989
}
9090
tooltip.add(ShardType.getDescription(shard.shardTypeId()).copy().withColor(shardType.textColor()));

0 commit comments

Comments
 (0)