Skip to content

Commit

Permalink
(Experimental) uncap inventory origin list
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 9, 2017
1 parent 9229b27 commit 505a3f3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -94,7 +94,7 @@ public static AbstractMap.SimpleEntry<Integer, dInventory> getInventory(Argument
else if (arg.matchesArgumentList(dItem.class)) {
List<dItem> list = dList.valueOf(string).filter(dItem.class, scriptEntry);
ItemStack[] items = convertItems(list).toArray(new ItemStack[list.size()]);
dInventory inventory = new dInventory(dInventory.maxSlots);
dInventory inventory = new dInventory(Math.max(dInventory.maxSlots, (items.length / 9) * 9));
inventory.setContents(items);
return new AbstractMap.SimpleEntry<Integer, dInventory>(items.length, inventory);
}
Expand Down

0 comments on commit 505a3f3

Please sign in to comment.