BlockStone: drop the right cobblestone on onBreak().
Signed-off-by: netchip <w00tc0d3@outlook.com>
This commit is contained in:
parent
5d0db6be50
commit
6127c21af9
@ -652,6 +652,12 @@ enum
|
||||
E_META_STAINED_GLASS_PANE_RED = 14,
|
||||
E_META_STAINED_GLASS_PANE_BLACK = 15,
|
||||
|
||||
// E_BLOCK_STONE metas:
|
||||
E_META_STONE = 0,
|
||||
E_META_STONE_GRANITE = 1,
|
||||
E_META_STONE_DIORITE = 3,
|
||||
E_META_STONE_ANDESITE = 5,
|
||||
|
||||
// E_BLOCK_STONE_SLAB metas:
|
||||
E_META_STONE_SLAB_STONE = 0,
|
||||
E_META_STONE_SLAB_SANDSTONE = 1,
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockHandler.h"
|
||||
|
||||
#include "BlockID.h"
|
||||
|
||||
|
||||
|
||||
@ -18,9 +18,15 @@ public:
|
||||
|
||||
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
||||
{
|
||||
a_Pickups.push_back(cItem(E_BLOCK_COBBLESTONE, 1, 0));
|
||||
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));
|
||||
}
|
||||
}
|
||||
} ;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user