版本更新至:3.826
修复:/tlib itemlist 指令翻页检测的问题
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -78,7 +78,7 @@ public class SpecialItem implements Listener {
|
||||
*/
|
||||
public void cancel(String name) {
|
||||
for (AbstractSpecialItem specialitem : ITEM_DATA) {
|
||||
if (specialitem.getName() != null && specialitem.getName().equals(specialitem)) {
|
||||
if (specialitem.getName() != null && specialitem.getName().equals(specialitem.getName())) {
|
||||
specialitem.onDisable();
|
||||
ITEM_DATA.remove(specialitem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user