summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemFishingRod.h
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2018-02-11 13:40:16 +0100
committerpeterbell10 <peterbell10@live.co.uk>2018-02-11 13:40:16 +0100
commit7e9695ecb018cab152794e5a23b96f0acc65cab4 (patch)
treebe2fa6b0dd2d5128a0df2eed592cfd3e2b3f2e66 /src/Items/ItemFishingRod.h
parentDeal with covered switches consistently (#4161) (diff)
downloadcuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.tar
cuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.tar.gz
cuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.tar.bz2
cuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.tar.lz
cuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.tar.xz
cuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.tar.zst
cuberite-7e9695ecb018cab152794e5a23b96f0acc65cab4.zip
Diffstat (limited to 'src/Items/ItemFishingRod.h')
-rw-r--r--src/Items/ItemFishingRod.h8
1 files changed, 8 insertions, 0 deletions
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
{