From ae8d658dc6dfe44a86876a711927488513607fea Mon Sep 17 00:00:00 2001 From: Silvigarabis <73000464+Silvigarabis@users.noreply.github.com> Date: Fri, 5 Jan 2024 01:33:49 +0800 Subject: [PATCH] =?UTF-8?q?gui:=20=E6=8A=8A=E6=96=87=E5=AD=97=E5=8F=98?= =?UTF-8?q?=E4=B8=BA=E7=99=BD=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/github/silvigarabis/esplitter/ESplitterGui.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java b/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java index fa0f356..4cbcbce 100644 --- a/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java +++ b/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java @@ -588,7 +588,10 @@ public static ItemStack createTextItem(ItemStack item, List textList){ } List contentList = null; if (textList.size() > 1){ - contentList = textList.subList(1, textList.size()); + contentList = new ArrayList<>(); + for (var text : textList.subList(1, textList.size())){ + contentList.add("§r§f" + text); + } } item = item.clone(); var meta = item.getItemMeta();