From 0a15f98a2e4a28cd6d64bae783350ae42ea5eac6 Mon Sep 17 00:00:00 2001 From: Taylor Kelly Date: Mon, 10 Jan 2011 11:03:53 +0800 Subject: [PATCH] Fixed CIP --- .../craftbukkit/CraftInventoryPlayer.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java b/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java index b49d6d9719..df36affa78 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftInventoryPlayer.java @@ -15,17 +15,6 @@ public class CraftInventoryPlayer extends CraftInventory implements PlayerInvent return (InventoryPlayer) inventory; } - public ArrayList getArmorContents() { - net.minecraft.server.ItemStack[] mcItems = getInventory().getArmorContents(); - ArrayList ret = new ArrayList(); - - for (int i = 0; i < mcItems.length; i++ ) { - ret.add(new CraftItemStack(mcItems[i])); - } - - return ret; - } - public int getSize() { return super.getSize() - 4; } @@ -65,4 +54,14 @@ public class CraftInventoryPlayer extends CraftInventory implements PlayerInvent public void setBoots(ItemStack boots) { setItem( getSize() + 3, boots ); } + + public ItemStack[] getArmorContents() { + net.minecraft.server.ItemStack[] mcItems = getInventory().getArmorContents(); + ItemStack[] ret = new ItemStack[mcItems.length]; + + for (int i = 0; i < mcItems.length; i++ ) { + ret[i] = new CraftItemStack(mcItems[i]); + } + return ret; + } }