From 3c73076be46bad9a908085056fff045b777b75de Mon Sep 17 00:00:00 2001 From: STRWarrior Date: Sat, 21 Dec 2013 14:08:58 +0100 Subject: [PATCH] Fixed bug where you could pickup the floater only to get one spawned instantly or the other way around. --- src/Items/ItemFishingRod.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h index 8d02b4cb5..87021fbd2 100644 --- a/src/Items/ItemFishingRod.h +++ b/src/Items/ItemFishingRod.h @@ -29,6 +29,11 @@ public: virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, char a_Dir) override { + if (a_Dir != BLOCK_FACE_NONE) + { + return false; + } + if (a_Player->IsFishing()) { class cFloaterCallback :