1
mirror of https://github.com/CarmJos/cn2b2t-project.git synced 2024-09-19 22:05:45 +00:00

修改依赖

This commit is contained in:
carm 2021-10-20 22:55:01 +08:00
parent 24de2c91a5
commit f411e148d5
2 changed files with 3 additions and 7 deletions

View File

@ -63,9 +63,7 @@ public class AutoPagedGUI extends CommonPagedGUI {
} }
}); });
} else { } else {
setItem(lastPageSlot, new GUIItem(firstPageUI == null ? new ItemStackFactory(Material.ARROW) setItem(lastPageSlot, new GUIItem(firstPageUI == null ? null : firstPageUI));
.setDisplayName("已经是首页了")
.toItemStack() : firstPageUI));
} }
if (lastPageSlot >= 0) if (lastPageSlot >= 0)
@ -81,9 +79,7 @@ public class AutoPagedGUI extends CommonPagedGUI {
} }
}); });
} else { } else {
setItem(nextPageSlot, new GUIItem(endPageUI == null ? new ItemStackFactory(Material.ARROW) setItem(nextPageSlot, new GUIItem(endPageUI == null ? null : endPageUI));
.setDisplayName("已经是尾页了")
.toItemStack() : endPageUI));
} }
super.openGUI(user); super.openGUI(user);

View File

@ -119,7 +119,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.17-R0.1-SNAPSHOT</version> <version>1.12-R0.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>