diff options
author | Bond-009 <bond.009@outlook.com> | 2018-02-11 13:40:16 +0100 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-02-11 13:40:16 +0100 |
commit | 7e9695ecb018cab152794e5a23b96f0acc65cab4 (patch) | |
tree | be2fa6b0dd2d5128a0df2eed592cfd3e2b3f2e66 | |
parent | Deal with covered switches consistently (#4161) (diff) | |
download | cuberite-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 |
-rw-r--r-- | src/Items/ItemFishingRod.h | 8 |
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 { |