SPIGOT-1575: Fix PlayerInventory.setArmorContents

This commit is contained in:
md_5 2016-03-02 06:58:45 +11:00
parent be538b8a2a
commit 76c04254c1

View File

@ -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];