fix: *cb command output component root's style getting overwritten with white

This commit is contained in:
Chayapak 2025-03-19 20:02:33 +07:00
parent 9d6fc74a34
commit 5587565325
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA
2 changed files with 5 additions and 2 deletions
build-number.txt
src/main/java/me/chayapak1/chomens_bot/commands

View file

@ -1 +1 @@
2014
2015

View file

@ -134,7 +134,10 @@ public class CommandBlockCommand extends Command {
)
.clickEvent(ClickEvent.copyToClipboard(player.profile.getName()))
.insertion(player.profile.getIdAsString()),
output.color(NamedTextColor.WHITE)
Component
.empty()
.append(output)
.color(NamedTextColor.WHITE)
)
.color(NamedTextColor.DARK_GRAY);