summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-25 08:11:49 +0200
committerMattes D <github@xoft.cz>2014-04-25 08:11:49 +0200
commita40108da90f8d0e4fff4027e45176cbe637106ad (patch)
treeeacd3dbb2f969e3cedfecaa16b0f23d6c59f5fb5 /src/Items/ItemHandler.cpp
parentMerge pull request #929 from archshift/master (diff)
parentAdd commit what the code is doing. (diff)
downloadcuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.gz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.bz2
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.lz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.xz
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.tar.zst
cuberite-a40108da90f8d0e4fff4027e45176cbe637106ad.zip
Diffstat (limited to 'src/Items/ItemHandler.cpp')
-rw-r--r--src/Items/ItemHandler.cpp26
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);
+ }
}
}