SPIGOT-1575: Fix PlayerInventory.setArmorContents

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-03-02 06:58:45 +11:00
parent 644995a8e5
commit 453753b3a3

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