mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
SPIGOT-1575: Fix PlayerInventory.setArmorContents
This commit is contained in:
parent
be538b8a2a
commit
76c04254c1
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user