版本更新至:3.826

修复:/tlib itemlist 指令翻页检测的问题
This commit is contained in:
坏黑
2018-03-25 19:30:12 +08:00
parent 862e7946c6
commit 6d5205a3bd
7 changed files with 5 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ public class ItemLibraryPatch implements Listener {
if (page > 1) {
inventory.setItem(47, ItemUtils.setName(new ItemStack(Material.ARROW), "§f上一页"));
}
if (((int) Math.ceil(ItemUtils.getItemCaches().size() / 28D)) > page) {
if (((int) Math.ceil(map.size() / 28D)) > page) {
inventory.setItem(51, ItemUtils.setName(new ItemStack(Material.ARROW), "§f下一页"));
}
player.openInventory(inventory);