diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-01-18 00:46:03 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-01-18 00:46:03 +0100 |
commit | 73d6070d889d0325072d9ed7a225e73f68bffb4a (patch) | |
tree | f9791175c77d31c0a9a05e218e35db941faf469c /src | |
parent | 19e98ffc71289a6dea420a6841ecd9dcb5f7f2ee (diff) | |
download | craftbukkit-73d6070d889d0325072d9ed7a225e73f68bffb4a.tar craftbukkit-73d6070d889d0325072d9ed7a225e73f68bffb4a.tar.gz craftbukkit-73d6070d889d0325072d9ed7a225e73f68bffb4a.tar.lz craftbukkit-73d6070d889d0325072d9ed7a225e73f68bffb4a.tar.xz craftbukkit-73d6070d889d0325072d9ed7a225e73f68bffb4a.zip |
Fixed: http://redmine.bukkit.org/issues/204 - fixed armor-slot order.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java index 17eb8c09..7f7eca66 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java @@ -31,35 +31,35 @@ public class CraftInventoryPlayer extends CraftInventory implements PlayerInvent } public CraftItemStack getHelmet() { - return getItem( getSize() + 0 ); + return getItem( getSize() + 3 ); } public CraftItemStack getChestplate() { - return getItem( getSize() + 1 ); + return getItem( getSize() + 2 ); } public CraftItemStack getLeggings() { - return getItem( getSize() + 2 ); + return getItem( getSize() + 1 ); } public CraftItemStack getBoots() { - return getItem( getSize() + 3 ); + return getItem( getSize() + 0 ); } public void setHelmet(ItemStack helmet) { - setItem( getSize() + 0, helmet ); + setItem( getSize() + 3, helmet ); } public void setChestplate(ItemStack chestplate) { - setItem( getSize() + 1, chestplate ); + setItem( getSize() + 2, chestplate ); } public void setLeggings(ItemStack leggings) { - setItem( getSize() + 2, leggings ); + setItem( getSize() + 1, leggings ); } public void setBoots(ItemStack boots) { - setItem( getSize() + 3, boots ); + setItem( getSize() + 0, boots ); } public CraftItemStack[] getArmorContents() { |