diff --git a/paper-server/pom.xml b/paper-server/pom.xml index aa623a25b1..229ed354fa 100644 --- a/paper-server/pom.xml +++ b/paper-server/pom.xml @@ -67,4 +67,4 @@ - + \ No newline at end of file diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java index 576661e2ff..b49d6d9719 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java @@ -1,5 +1,6 @@ package org.bukkit.craftbukkit; +import java.util.ArrayList; import net.minecraft.server.InventoryPlayer; import org.bukkit.ItemStack; @@ -14,15 +15,15 @@ public class CraftInventoryPlayer extends CraftInventory implements PlayerInvent return (InventoryPlayer) inventory; } - public CraftItemStack[] getArmorContents() { + public ArrayList getArmorContents() { net.minecraft.server.ItemStack[] mcItems = getInventory().getArmorContents(); - CraftItemStack[] items = new CraftItemStack[mcItems.length]; + ArrayList ret = new ArrayList(); for (int i = 0; i < mcItems.length; i++ ) { - items[i] = new CraftItemStack(mcItems[i]); + ret.add(new CraftItemStack(mcItems[i])); } - return items; + return ret; } public int getSize() {