1
0

Changed if in BlockHandler

This commit is contained in:
Jaume Aloy
2014-08-19 18:40:42 +02:00
parent 596203e692
commit 5008eb8c83
2 changed files with 2 additions and 6 deletions

View File

@@ -424,15 +424,12 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac
cItems Pickups;
NIBBLETYPE Meta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);
// Thanks to daniel0916
cPlayer * Player = (cPlayer *)a_Digger;
cEnchantments Enchantments = Player->GetInventory().GetEquippedItem().m_Enchantments;
if (a_CanDrop)
{
if (!a_DropVerbatim)
{
if (Enchantments.GetLevel(cEnchantments::enchSilkTouch) > 0)
cEnchantments Enchantments = a_Digger->GetEquippedWeapon().m_Enchantments;
if ((Enchantments.GetLevel(cEnchantments::enchSilkTouch) > 0) && (a_Digger->IsPlayer()))
{
switch (m_BlockType)
{