From 79b59a6685aa5241aa4054cf8c56f979d2a7416f Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Wed, 1 Nov 2023 20:40:18 +0700 Subject: [PATCH] fix core tracked showing secret when output is empty --- .../chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java index 0e328b8..fb69aec 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java @@ -225,7 +225,9 @@ public class CorePlugin extends PositionPlugin.Listener { final List children = component.children(); - if (children.size() != 2) return true; + if (children.size() > 2 || children.isEmpty()) return true; + + if (children.size() == 1) return false; final int transactionId = Integer.parseInt(((TextComponent) children.get(0)).content());