diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 23:20:36 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 23:20:36 +0200 |
commit | 3f1eb05593e0a5abfe53e22c73101753fc10dcb9 (patch) | |
tree | ed552b4719050631a0d8541418b62aedeac71e44 | |
parent | Set leaves as a transparent block. (diff) | |
download | cuberite-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 |
-rw-r--r-- | source/BlockID.cpp | 4 |
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; } |