mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-22 14:41:48 +01:00
fixed issue with /mi browse only
This commit is contained in:
parent
bcfe82f475
commit
7485751439
@ -48,8 +48,6 @@ public class ItemBrowser extends PluginInventory {
|
|||||||
int max = page * slots.length;
|
int max = page * slots.length;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
List<String> itemIds = new ArrayList<>(type.getConfigFile().getConfig().getKeys(false));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* displays all possible item types if no type was previously selected
|
* displays all possible item types if no type was previously selected
|
||||||
* by the player
|
* by the player
|
||||||
@ -97,6 +95,7 @@ public class ItemBrowser extends PluginInventory {
|
|||||||
return inv;
|
return inv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ItemStack error = VersionMaterial.RED_STAINED_GLASS_PANE.toItem();
|
ItemStack error = VersionMaterial.RED_STAINED_GLASS_PANE.toItem();
|
||||||
ItemMeta errorMeta = error.getItemMeta();
|
ItemMeta errorMeta = error.getItemMeta();
|
||||||
errorMeta.setDisplayName(ChatColor.RED + "- Error -");
|
errorMeta.setDisplayName(ChatColor.RED + "- Error -");
|
||||||
@ -106,6 +105,8 @@ public class ItemBrowser extends PluginInventory {
|
|||||||
errorMeta.setLore(errorLore);
|
errorMeta.setLore(errorLore);
|
||||||
error.setItemMeta(errorMeta);
|
error.setItemMeta(errorMeta);
|
||||||
|
|
||||||
|
List<String> itemIds = new ArrayList<>(type.getConfigFile().getConfig().getKeys(false));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* displays every item in a specific type. items are cached inside the
|
* displays every item in a specific type. items are cached inside the
|
||||||
* map at the top to reduce performance impact and are directly rendered
|
* map at the top to reduce performance impact and are directly rendered
|
||||||
|
Loading…
Reference in New Issue
Block a user