summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-22 21:10:02 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-22 21:10:02 +0200
commitb5e5586ab04b4cb7d630bc8a4999e23eba71a6e5 (patch)
tree089b3be905aa030367925762c58bd30b08f5f3f6 /src/Items
parentUpdated prefabs to current Gallery content. (diff)
parentMerge remote-tracking branch 'origin/master' into saplingsandleaves (diff)
downloadcuberite-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.cpp9
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();