diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-22 21:10:02 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-22 21:10:02 +0200 |
commit | b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5 (patch) | |
tree | 089b3be905aa030367925762c58bd30b08f5f3f6 /src/Items | |
parent | Updated prefabs to current Gallery content. (diff) | |
parent | Merge remote-tracking branch 'origin/master' into saplingsandleaves (diff) | |
download | cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.tar cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.tar.gz cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.tar.bz2 cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.tar.lz cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.tar.xz cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.tar.zst cuberite-b5e5586ab04b4cb7d630bc8a4999e23eba71a6e5.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 bf1d4e4cb..1671a8145 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(); |