mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-31 06:07:34 +01:00
!Fixed a small item browser issue
This commit is contained in:
parent
31ca777678
commit
174c7e44a7
@ -29,9 +29,10 @@ import net.Indyuce.mmoitems.version.VersionMaterial;
|
||||
import net.Indyuce.mmoitems.version.nms.ItemTag;
|
||||
|
||||
public class ItemBrowser extends PluginInventory {
|
||||
private final Map<String, ItemStack> cached = new HashMap<>();
|
||||
|
||||
private Type type;
|
||||
private boolean deleteMode;
|
||||
private Map<String, ItemStack> cached = new HashMap<>();
|
||||
|
||||
private static final int[] slots = { 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, 34 };
|
||||
|
||||
@ -92,7 +93,7 @@ public class ItemBrowser extends PluginInventory {
|
||||
while (n < slots.length)
|
||||
inv.setItem(slots[n++], glass);
|
||||
inv.setItem(18, page > 1 ? previous : null);
|
||||
inv.setItem(26, inv.getItem(34).equals(glass) ? null : next);
|
||||
inv.setItem(26, max >= MMOItems.plugin.getTypes().getAll().size() ? null : next);
|
||||
|
||||
return inv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user