Skip to content

Commit

Permalink
another fix, yay
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 12, 2016
1 parent 235bb7c commit d2b2dc8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1270,10 +1270,10 @@ public String getAttribute(Attribute attribute) {

InventoryType type = inventory.getType();
dInventory dummyInv = new dInventory(Bukkit.createInventory(null, type == InventoryType.PLAYER ? InventoryType.CHEST : type, inventory.getTitle()));
ItemStack[] contents = getStorageContents();
if (dummyInv.getInventoryType() == InventoryType.CHEST) {
dummyInv.setSize(inventory.getSize());
dummyInv.setSize(contents.length);
}
ItemStack[] contents = getStorageContents();
if (contents.length != dummyInv.getSize()) {
contents = Arrays.copyOf(contents, dummyInv.getSize());
}
Expand Down

0 comments on commit d2b2dc8

Please sign in to comment.