SPIGOT-1575: Fix PlayerInventory.setArmorContents
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user