From 76c04254c155f93de002219dd3311a08f1a4dccd Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 2 Mar 2016 06:58:45 +1100 Subject: [PATCH] SPIGOT-1575: Fix PlayerInventory.setArmorContents --- .../org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java index a7a6d94850..8f78b8c65b 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java @@ -145,7 +145,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i } public void setArmorContents(ItemStack[] items) { - int cnt = getSize(); + int cnt = getInventory().items.length; if (items == null) { items = new ItemStack[4];