summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-21 14:08:58 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-21 14:08:58 +0100
commit3c73076be46bad9a908085056fff045b777b75de (patch)
tree0cca0af5aa8dda257d02c1399d21154d96c70c46 /src/Items
parentFixed bug where you could get fish from non-source blocks. (diff)
downloadcuberite-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.h5
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 :