diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-17 23:26:53 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-17 23:26:53 +0200 |
commit | 0f8c24e04d60aa1642a5fe7346941ccd7697977e (patch) | |
tree | 4b62903944643bfe406f503393bc26815c2548a7 /src/Items/ItemHandler.cpp | |
parent | Fixed mob knockback (diff) | |
download | cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.tar cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.tar.gz cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.tar.bz2 cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.tar.lz cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.tar.xz cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.tar.zst cuberite-0f8c24e04d60aa1642a5fe7346941ccd7697977e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemHandler.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp index 85406c826..604cce729 100644 --- a/src/Items/ItemHandler.cpp +++ b/src/Items/ItemHandler.cpp @@ -328,12 +328,9 @@ void cItemHandler::OnBlockDestroyed(cWorld * a_World, cPlayer * a_Player, const if (a_Player->IsGameModeSurvival()) { - if (!BlockRequiresSpecialTool(Block) || CanHarvestBlock(Block)) - { - cChunkInterface ChunkInterface(a_World->GetChunkMap()); - cBlockInServerPluginInterface PluginInterface(*a_World); - Handler->DropBlock(ChunkInterface, *a_World, PluginInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ); - } + cChunkInterface ChunkInterface(a_World->GetChunkMap()); + cBlockInServerPluginInterface PluginInterface(*a_World); + Handler->DropBlock(ChunkInterface, *a_World, PluginInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, CanHarvestBlock(Block)); } a_Player->UseEquippedItem(); |