SPIGOT-4646: Test + fix InventoryWrapper.getContents

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-03-05 16:59:40 +11:00
parent a257532ba2
commit 6846b3d2d9
2 changed files with 24 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ public class InventoryWrapper implements IInventory {
List<ItemStack> items = new ArrayList<ItemStack>(size);
for (int i = 0; i < size; i++) {
items.set(i, getItem(i));
items.add(getItem(i));
}
return items;