diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-21 14:08:58 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-21 14:08:58 +0100 |
commit | 3c73076be46bad9a908085056fff045b777b75de (patch) | |
tree | 0cca0af5aa8dda257d02c1399d21154d96c70c46 /src/Items/ItemFishingRod.h | |
parent | Fixed bug where you could get fish from non-source blocks. (diff) | |
download | cuberite-3c73076be46bad9a908085056fff045b777b75de.tar cuberite-3c73076be46bad9a908085056fff045b777b75de.tar.gz cuberite-3c73076be46bad9a908085056fff045b777b75de.tar.bz2 cuberite-3c73076be46bad9a908085056fff045b777b75de.tar.lz cuberite-3c73076be46bad9a908085056fff045b777b75de.tar.xz cuberite-3c73076be46bad9a908085056fff045b777b75de.tar.zst cuberite-3c73076be46bad9a908085056fff045b777b75de.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemFishingRod.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 : |