Skip to content

Commit

Permalink
Fix: don't override style of root component in collectible toast
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Oct 28, 2023
1 parent f4c8871 commit 05d08ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class CollectibleToast implements Toast {

public CollectibleToast(final Collectible collectible) {
stack = collectible.createItemStack(Util.NIL_UUID);
name = stack.getHoverName().copy().withStyle(ChatFormatting.DARK_RED);
name = Component.empty().withStyle(ChatFormatting.DARK_RED).append(stack.getHoverName());
}

@Override
Expand Down

0 comments on commit 05d08ed

Please sign in to comment.