版本更新至: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

@ -6,7 +6,7 @@ website: http://www.15imc.com/index.html
main: me.skymc.taboolib.Main main: me.skymc.taboolib.Main
version: 3.825 version: 3.826
commands: commands:
taboolib: taboolib:

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,2 @@
#Sat Mar 10 19:32:51 CST 2018
gradle.version=4.5

View File

@ -65,7 +65,7 @@ public class ItemLibraryPatch implements Listener {
if (page > 1) { if (page > 1) {
inventory.setItem(47, ItemUtils.setName(new ItemStack(Material.ARROW), "§f上一页")); 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下一页")); inventory.setItem(51, ItemUtils.setName(new ItemStack(Material.ARROW), "§f下一页"));
} }
player.openInventory(inventory); player.openInventory(inventory);

View File

@ -78,7 +78,7 @@ public class SpecialItem implements Listener {
*/ */
public void cancel(String name) { public void cancel(String name) {
for (AbstractSpecialItem specialitem : ITEM_DATA) { for (AbstractSpecialItem specialitem : ITEM_DATA) {
if (specialitem.getName() != null && specialitem.getName().equals(specialitem)) { if (specialitem.getName() != null && specialitem.getName().equals(specialitem.getName())) {
specialitem.onDisable(); specialitem.onDisable();
ITEM_DATA.remove(specialitem); ITEM_DATA.remove(specialitem);
} }