Skip to content

Commit

Permalink
nicen shift tooltip for empty named cards
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Nov 26, 2024
1 parent 8d862f3 commit c9a2848
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit c9a2848

Please sign in to comment.