Bed piston fix (#3956)
* Threaded world interface into ConvertBlockToPickups * Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call. * Removed unused a_Digger argument. * Removed incorrect comment * This time actually removed a_Digger references.
This commit is contained in:
committed by
Alexander Harkness
parent
b55e5f5ad1
commit
87c89a1727
@@ -523,7 +523,7 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac
|
||||
case E_BLOCK_BED:
|
||||
{
|
||||
// Need to access the bed entity to get the color for the item damage
|
||||
ConvertToPickups(a_Digger, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
|
||||
ConvertToPickups(a_WorldInterface, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
|
||||
}
|
||||
default: Pickups.Add(m_BlockType, 1, Meta); break;
|
||||
}
|
||||
@@ -531,7 +531,7 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac
|
||||
else if (m_BlockType == E_BLOCK_BED)
|
||||
{
|
||||
// Need to access the bed entity to get the color for the item damage
|
||||
ConvertToPickups(a_Digger, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
|
||||
ConvertToPickups(a_WorldInterface, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user