1
0

BlockStone.h: fix the codestyle

This commit is contained in:
w00tc0d3 2014-09-29 19:19:17 +02:00
parent d5ae659da3
commit 9628733df2

View File

@ -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));
}
};