1
0

Drop enderchest when broken by a silk touck pick (#3986)

This commit is contained in:
Bond-009
2017-08-31 17:50:07 +02:00
committed by Mattes D
parent da0778dfaa
commit 00d077de1b
2 changed files with 6 additions and 1 deletions

View File

@@ -525,6 +525,12 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac
// Need to access the bed entity to get the color for the item damage
ConvertToPickups(a_WorldInterface, Pickups, Meta, a_BlockX, a_BlockY, a_BlockZ);
}
case E_BLOCK_ENDER_CHEST:
{
// Reset meta to 0
Pickups.Add(m_BlockType, 1, 0);
break;
}
default: Pickups.Add(m_BlockType, 1, Meta); break;
}
}