From 99b79318369814255ae88a0ed8de517623bb7f05 Mon Sep 17 00:00:00 2001 From: Silvigarabis <73000464+Silvigarabis@users.noreply.github.com> Date: Fri, 5 Jan 2024 01:34:52 +0800 Subject: [PATCH] =?UTF-8?q?gui:=20=E4=B8=80=E4=BA=9B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/github/silvigarabis/esplitter/ESplitterGui.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java b/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java index 4cbcbce..81b47e9 100644 --- a/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java +++ b/src/main/java/io/github/silvigarabis/esplitter/ESplitterGui.java @@ -581,9 +581,9 @@ public static ItemStack createTextItem(ItemStack item, String... texts){ } public static ItemStack createTextItem(ItemStack item, List textList){ String titleText; - try { + if (textList.size() > 0){ titleText = textList.get(0); - } catch(java.lang.IndexOutOfBoundsException ignored){ + } else { titleText = ""; } List contentList = null;