mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-13 13:30:06 +01:00
!Removed 'Switch to block explorer'
This commit is contained in:
parent
2d85f9a20b
commit
d3e05b82a7
@ -95,18 +95,11 @@ public class ItemBrowser extends PluginInventory {
|
||||
previousMeta.setDisplayName(ChatColor.GREEN + "Previous Page");
|
||||
previous.setItemMeta(previousMeta);
|
||||
|
||||
ItemStack switchBrowse = new ItemStack(Material.STONE);
|
||||
ItemMeta switchMeta = switchBrowse.getItemMeta();
|
||||
switchMeta.setDisplayName(ChatColor.GREEN + "Switch to Block Explorer");
|
||||
switchBrowse.setItemMeta(switchMeta);
|
||||
|
||||
while (n < slots.length)
|
||||
inv.setItem(slots[n++], glass);
|
||||
inv.setItem(18, page > 1 ? previous : null);
|
||||
inv.setItem(26, max >= MMOItems.plugin.getTypes().getAll().size() ? null : next);
|
||||
|
||||
inv.setItem(53, switchBrowse);
|
||||
|
||||
return inv;
|
||||
}
|
||||
|
||||
@ -125,8 +118,7 @@ public class ItemBrowser extends PluginInventory {
|
||||
* displays every item in a specific type. items are cached inside the
|
||||
* map at the top to reduce performance impact and are directly rendered
|
||||
*/
|
||||
Inventory inv = Bukkit.createInventory(this, 54,
|
||||
(deleteMode ? ("Delete Mode: ") : ("Item Explorer: ")) + type.getName());
|
||||
Inventory inv = Bukkit.createInventory(this, 54, (deleteMode ? ("Delete Mode: ") : ("Item Explorer: ")) + type.getName());
|
||||
for (int j = min; j < Math.min(max, templates.size()); j++) {
|
||||
MMOItemTemplate template = templates.get(j);
|
||||
if (!cached.containsKey(template.getId())) {
|
||||
@ -233,9 +225,6 @@ public class ItemBrowser extends PluginInventory {
|
||||
else if (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + AltChar.rightArrow + " Back"))
|
||||
new ItemBrowser(getPlayer()).open();
|
||||
|
||||
else if (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Switch to Block Explorer"))
|
||||
new ItemBrowser(getPlayer(), Type.BLOCK).open();
|
||||
|
||||
else if (item.getItemMeta().getDisplayName().equals(ChatColor.RED + "Cancel Deletion")) {
|
||||
deleteMode = false;
|
||||
open();
|
||||
|
Loading…
Reference in New Issue
Block a user