diff --git a/2b2t-core/src/main/java/org.cn2b2t.core/modules/gui/AutoPagedGUI.java b/2b2t-core/src/main/java/org.cn2b2t.core/modules/gui/AutoPagedGUI.java index 675d268..b66082c 100644 --- a/2b2t-core/src/main/java/org.cn2b2t.core/modules/gui/AutoPagedGUI.java +++ b/2b2t-core/src/main/java/org.cn2b2t.core/modules/gui/AutoPagedGUI.java @@ -63,9 +63,7 @@ public class AutoPagedGUI extends CommonPagedGUI { } }); } else { - setItem(lastPageSlot, new GUIItem(firstPageUI == null ? new ItemStackFactory(Material.ARROW) - .setDisplayName("已经是首页了") - .toItemStack() : firstPageUI)); + setItem(lastPageSlot, new GUIItem(firstPageUI == null ? null : firstPageUI)); } if (lastPageSlot >= 0) @@ -81,9 +79,7 @@ public class AutoPagedGUI extends CommonPagedGUI { } }); } else { - setItem(nextPageSlot, new GUIItem(endPageUI == null ? new ItemStackFactory(Material.ARROW) - .setDisplayName("已经是尾页了") - .toItemStack() : endPageUI)); + setItem(nextPageSlot, new GUIItem(endPageUI == null ? null : endPageUI)); } super.openGUI(user); diff --git a/pom.xml b/pom.xml index df31fa0..78abfb1 100644 --- a/pom.xml +++ b/pom.xml @@ -119,7 +119,7 @@ org.spigotmc spigot-api - 1.17-R0.1-SNAPSHOT + 1.12-R0.1-SNAPSHOT