diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-23 21:12:21 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-23 21:12:21 +0200 |
commit | 8f2181bfbe3a6539ab16119a8b589ee8aca0c18f (patch) | |
tree | 8761385c905072806885be72d02eb3e83a1f696f /source/Blocks | |
parent | Fix VSProject path issue (diff) | |
download | cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.tar cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.tar.gz cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.tar.bz2 cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.tar.lz cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.tar.xz cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.tar.zst cuberite-8f2181bfbe3a6539ab16119a8b589ee8aca0c18f.zip |
Diffstat (limited to 'source/Blocks')
-rw-r--r-- | source/Blocks/BlockDoubleSlab.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/Blocks/BlockDoubleSlab.h b/source/Blocks/BlockDoubleSlab.h index c91fe64e6..ed6ae9a70 100644 --- a/source/Blocks/BlockDoubleSlab.h +++ b/source/Blocks/BlockDoubleSlab.h @@ -20,8 +20,15 @@ public: virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { - char Count = ((m_BlockType == E_BLOCK_DOUBLE_STONE_SLAB) || (m_BlockType == E_BLOCK_DOUBLE_WOODEN_SLAB)) ? 2 : 1; - a_Pickups.push_back(cItem(m_BlockType, Count, a_BlockMeta)); + if (m_BlockType == E_BLOCK_DOUBLE_STONE_SLAB) + { + m_BlockType = E_BLOCK_STONE_SLAB; + } + else + { + m_BlockType = E_BLOCK_WOODEN_SLAB; + } + a_Pickups.push_back(cItem(m_BlockType, 2, a_BlockMeta)); } |