summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockStone.h
diff options
context:
space:
mode:
authorw00tc0d3 <w00tc0d3@outlook.com>2014-09-29 19:19:17 +0200
committerw00tc0d3 <w00tc0d3@outlook.com>2014-09-29 19:19:17 +0200
commit9628733df2ab39668bf1e92571442b1486d9d9de (patch)
tree1b73eb451dbfc9e5d98026513e5c15889c9c1334 /src/Blocks/BlockStone.h
parentTabs -> spaces (diff)
downloadcuberite-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 'src/Blocks/BlockStone.h')
-rw-r--r--src/Blocks/BlockStone.h11
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));
}
};