ItemStack[] contents = new ItemStack[inv.getSize()];
MenuItem[] items = this.items.get(who);
if (items == null) this.items.put(who, items = new MenuItem[inv.getSize()]);
for (int slot = 0, result; slot < menuGrid.getSize(); slot++) {
MenuItem item = menuGrid.getItems()[slot];
<BUG>if (!item.getSettings().isHidden(plugin, who)) {
items[result = item.getSlot(who, contents)] = item;

contents[result] = item.load(nagger, who);
}</BUG>
}

ItemStack[] contents = new ItemStack[inv.getSize()];
MenuItem[] items = this.items.get(who);
if (items == null) this.items.put(who, items = new MenuItem[inv.getSize()]);
for (int slot = 0, result; slot < menuGrid.getSize(); slot++) {
MenuItem item = menuGrid.getItems()[slot];
if (!item.getSettings().isHidden(plugin, who)) {
ItemStack stack = item.load(nagger, who);
items[result = item.getSlot(who, contents, stack)] = item;
contents[result] = stack;
}
}
