diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 23:33:53 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-08 23:33:53 +0200 |
commit | 27b02efffa202e7a97d85fceb017a47678f52a9e (patch) | |
tree | c9d813a3be3b63ca81e60ad95f593768263c9a4b /source | |
parent | Fixed item damage not being set properly in StringToItem() (diff) | |
download | cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.tar cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.tar.gz cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.tar.bz2 cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.tar.lz cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.tar.xz cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.tar.zst cuberite-27b02efffa202e7a97d85fceb017a47678f52a9e.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/BlockID.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp index 99f8cb1d1..654a55e63 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -86,6 +86,7 @@ public: { a_Item.m_ItemDamage = 0; } + a_Item.m_ItemCount = 1; return true; } @@ -107,6 +108,7 @@ public: } if (Split.size() < 2) { + a_Item.m_ItemCount = 1; return true; } a_Item.m_ItemDamage = atoi(Split[1].c_str()); @@ -115,7 +117,7 @@ public: // Parsing the number failed return false; } - + a_Item.m_ItemCount = 1; return true; } |