summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockStone.h
diff options
context:
space:
mode:
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));
}
};