From 7e9695ecb018cab152794e5a23b96f0acc65cab4 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 11 Feb 2018 13:40:16 +0100 Subject: Damage fishing rod when catching the hook on a block, then reeling it in (#4151) Fixes #4132 --- src/Items/ItemFishingRod.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h index 42c16bfff..e452951fd 100644 --- a/src/Items/ItemFishingRod.h +++ b/src/Items/ItemFishingRod.h @@ -234,6 +234,14 @@ public: a_Player->UseEquippedItem(1); cRoot::Get()->GetPluginManager()->CallHookPlayerFished(*a_Player, Drops); } + else + { + BLOCKTYPE Block = a_World->GetBlock(FloaterInfo.GetPos() - Vector3d(0, 0.1, 0)); + if ((Block != E_BLOCK_AIR) && !IsBlockWater(Block)) + { + a_Player->UseEquippedItem(2); + } + } } else { -- cgit v1.2.3