1
0

Fix armor in survival mode.

This commit is contained in:
Howaner
2014-04-24 20:41:25 +02:00
parent 695baed226
commit 9cbb3a339f
6 changed files with 157 additions and 17 deletions

View File

@@ -8,6 +8,7 @@
#include "../BlockInServerPluginInterface.h"
// Handlers:
#include "ItemArmor.h"
#include "ItemBed.h"
#include "ItemBoat.h"
#include "ItemBow.h"
@@ -90,6 +91,12 @@ cItemHandler * cItemHandler::GetItemHandler(int a_ItemType)
cItemHandler *cItemHandler::CreateItemHandler(int a_ItemType)
{
// Armor
if (ItemCategory::IsArmor(a_ItemType))
{
return new cItemArmorHandler(a_ItemType);
}
switch(a_ItemType)
{
default: return new cItemHandler(a_ItemType);