Add child check to isBaseComponent()

This commit is contained in:
Alexander
2021-05-26 01:09:18 +01:00
parent aa890f6f38
commit 6907e66360

View File

@@ -199,6 +199,7 @@ public final class ChatUtils {
final var content = component instanceof net.kyori.adventure.text.TextComponent ?
((net.kyori.adventure.text.TextComponent) component).content() : null;
return StringUtils.isEmpty(content)
&& !component.children().isEmpty()
&& component.clickEvent() == null
&& component.hoverEvent() == null
&& !component.hasStyling();