Fixed incorrect double slab drops
This commit is contained in:
parent
a6f068927a
commit
8f2181bfbe
@ -20,8 +20,15 @@ public:
|
||||
|
||||
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
||||
{
|
||||
char Count = ((m_BlockType == E_BLOCK_DOUBLE_STONE_SLAB) || (m_BlockType == E_BLOCK_DOUBLE_WOODEN_SLAB)) ? 2 : 1;
|
||||
a_Pickups.push_back(cItem(m_BlockType, Count, a_BlockMeta));
|
||||
if (m_BlockType == E_BLOCK_DOUBLE_STONE_SLAB)
|
||||
{
|
||||
m_BlockType = E_BLOCK_STONE_SLAB;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_BlockType = E_BLOCK_WOODEN_SLAB;
|
||||
}
|
||||
a_Pickups.push_back(cItem(m_BlockType, 2, a_BlockMeta));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user