From 3f1eb05593e0a5abfe53e22c73101753fc10dcb9 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 8 Sep 2012 21:20:36 +0000 Subject: Fixed item damage not being set properly in StringToItem() git-svn-id: http://mc-server.googlecode.com/svn/trunk@853 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/BlockID.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/BlockID.cpp b/source/BlockID.cpp index 78d1b3b69..99f8cb1d1 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -82,6 +82,10 @@ public: { a_Item.m_ItemType = itr->second.first; a_Item.m_ItemDamage = itr->second.second; + if (a_Item.m_ItemDamage == -1) + { + a_Item.m_ItemDamage = 0; + } return true; } -- cgit v1.2.3