Stairs reset meta when dropped, fixes #269
Additionally, they now have walking sounds.
This commit is contained in:
parent
1d69c80ad3
commit
4741e5e794
@ -47,8 +47,28 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO: step sound
|
||||
|
||||
virtual const char * GetStepSound(void) override
|
||||
{
|
||||
if (
|
||||
(m_BlockType == E_BLOCK_WOODEN_STAIRS) ||
|
||||
(m_BlockType == E_BLOCK_SPRUCE_WOOD_STAIRS) ||
|
||||
(m_BlockType == E_BLOCK_JUNGLE_WOOD_STAIRS) ||
|
||||
(m_BlockType == E_BLOCK_ACACIA_WOOD_STAIRS) ||
|
||||
(m_BlockType == E_BLOCK_BIRCH_WOOD_STAIRS) ||
|
||||
(m_BlockType == E_BLOCK_DARK_OAK_WOOD_STAIRS)
|
||||
)
|
||||
{
|
||||
return "step.wood";
|
||||
}
|
||||
|
||||
return "step.stone";
|
||||
}
|
||||
|
||||
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
||||
{
|
||||
// Reset meta to 0
|
||||
a_Pickups.push_back(cItem(m_BlockType, 1, 0));
|
||||
}
|
||||
|
||||
static NIBBLETYPE RotationToMetaData(double a_Rotation)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user