diff --git a/api/src/main/java/net/kyori/adventure/text/LinearComponents.java b/api/src/main/java/net/kyori/adventure/text/LinearComponents.java index 842539405..bcbddd603 100644 --- a/api/src/main/java/net/kyori/adventure/text/LinearComponents.java +++ b/api/src/main/java/net/kyori/adventure/text/LinearComponents.java @@ -79,7 +79,7 @@ private LinearComponents() { final int size = builder.children.size(); if (size == 0) { throw nothingComponentLike(); - } else if (size == 1) { + } else if (size == 1 && !builder.hasStyle()) { return builder.children.get(0); } else { return builder.build();