diff options
author | archshift <admin@archshift.com> | 2014-04-25 19:50:10 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-25 19:50:10 +0200 |
commit | d64e46186f21a024da3cedff1a8bab24e8d51b3f (patch) | |
tree | 441377b44418bce1a7d97b5cc2b09135e668aa40 /src/Items/ItemHandler.cpp | |
parent | Small changes; warning fixing. (diff) | |
parent | Merge pull request #937 from archshift/xcode-headers (diff) | |
download | cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.gz cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.bz2 cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.lz cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.xz cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.tar.zst cuberite-d64e46186f21a024da3cedff1a8bab24e8d51b3f.zip |
Diffstat (limited to 'src/Items/ItemHandler.cpp')
-rw-r--r-- | src/Items/ItemHandler.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp index 5151eac38..ce9593a70 100644 --- a/src/Items/ItemHandler.cpp +++ b/src/Items/ItemHandler.cpp @@ -8,6 +8,7 @@ #include "../BlockInServerPluginInterface.h" // Handlers: +#include "ItemArmor.h" #include "ItemBed.h" #include "ItemBoat.h" #include "ItemBow.h" @@ -222,6 +223,31 @@ cItemHandler *cItemHandler::CreateItemHandler(int a_ItemType) { return new cItemFoodHandler(a_ItemType); } + + // Armor: + case E_ITEM_LEATHER_CAP: + case E_ITEM_GOLD_HELMET: + case E_ITEM_CHAIN_HELMET: + case E_ITEM_IRON_HELMET: + case E_ITEM_DIAMOND_HELMET: + case E_ITEM_LEATHER_TUNIC: + case E_ITEM_GOLD_CHESTPLATE: + case E_ITEM_CHAIN_CHESTPLATE: + case E_ITEM_IRON_CHESTPLATE: + case E_ITEM_DIAMOND_CHESTPLATE: + case E_ITEM_LEATHER_PANTS: + case E_ITEM_GOLD_LEGGINGS: + case E_ITEM_CHAIN_LEGGINGS: + case E_ITEM_IRON_LEGGINGS: + case E_ITEM_DIAMOND_LEGGINGS: + case E_ITEM_LEATHER_BOOTS: + case E_ITEM_GOLD_BOOTS: + case E_ITEM_CHAIN_BOOTS: + case E_ITEM_IRON_BOOTS: + case E_ITEM_DIAMOND_BOOTS: + { + return new cItemArmorHandler(a_ItemType); + } } } |