mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Add child check to isBaseComponent()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user