summaryrefslogtreecommitdiffstats
path: root/source/BlockID.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-08 23:20:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-08 23:20:36 +0200
commit3f1eb05593e0a5abfe53e22c73101753fc10dcb9 (patch)
treeed552b4719050631a0d8541418b62aedeac71e44 /source/BlockID.cpp
parentSet leaves as a transparent block. (diff)
downloadcuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.tar
cuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.tar.gz
cuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.tar.bz2
cuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.tar.lz
cuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.tar.xz
cuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.tar.zst
cuberite-3f1eb05593e0a5abfe53e22c73101753fc10dcb9.zip
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;
}