summaryrefslogtreecommitdiffstats
path: root/source/BlockID.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/BlockID.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}