diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-12-17 01:31:41 -0600 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-12-17 01:31:41 -0600 |
commit | 78f48258d8ab491065498492588acc5287a6fb6c (patch) | |
tree | 11027439669a05c335fc6cb07c12a82b9c551f31 /src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java | |
parent | d20d4dc43aaa74fba457c44994cda8180523c9db (diff) | |
download | craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar.gz craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar.lz craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.tar.xz craftbukkit-78f48258d8ab491065498492588acc5287a6fb6c.zip |
Implement ItemFactory and ItemMeta values. Adds BUKKIT-15
Diffstat (limited to 'src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java index 9b7172d3..85bec9b7 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java @@ -22,7 +22,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i } public ItemStack getItemInHand() { - return new CraftItemStack(getInventory().getItemInHand()); + return CraftItemStack.asCraftMirror(getInventory().getItemInHand()); } public void setItemInHand(ItemStack stack) { @@ -70,7 +70,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i ItemStack[] ret = new ItemStack[mcItems.length]; for (int i = 0; i < mcItems.length; i++) { - ret[i] = new CraftItemStack(mcItems[i]); + ret[i] = CraftItemStack.asCraftMirror(mcItems[i]); } return ret; } |