diff options
author | w00tc0d3 <w00tc0d3@outlook.com> | 2014-09-29 19:19:17 +0200 |
---|---|---|
committer | w00tc0d3 <w00tc0d3@outlook.com> | 2014-09-29 19:19:17 +0200 |
commit | 9628733df2ab39668bf1e92571442b1486d9d9de (patch) | |
tree | 1b73eb451dbfc9e5d98026513e5c15889c9c1334 /src/Blocks | |
parent | Tabs -> spaces (diff) | |
download | cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.tar cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.tar.gz cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.tar.bz2 cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.tar.lz cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.tar.xz cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.tar.zst cuberite-9628733df2ab39668bf1e92571442b1486d9d9de.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockStone.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Blocks/BlockStone.h b/src/Blocks/BlockStone.h index 2b71cebf1..2e7801f8e 100644 --- a/src/Blocks/BlockStone.h +++ b/src/Blocks/BlockStone.h @@ -18,13 +18,12 @@ public: virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { - switch(a_BlockMeta) { - case E_META_STONE: - a_Pickups.push_back(cItem(E_BLOCK_COBBLESTONE, 1, 0)); - break; - default: - a_Pickups.push_back(cItem(E_BLOCK_STONE, 1, a_BlockMeta)); + if(a_BlockMeta == E_META_STONE) + { + a_Pickups.push_back(cItem(E_BLOCK_COBBLESTONE, 1, 0)); + return; } + a_Pickups.push_back(cItem(E_BLOCK_STONE, 1, a_BlockMeta)); } }; |