diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-04 19:59:05 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-04 19:59:05 +0100 |
commit | 8464f689ea214d3c30105ae58539885cf1268317 (patch) | |
tree | 4e165031ed1528e4fd7c704850b62c543baf8d3f /src/Items/ItemBoat.h | |
parent | Fixed calling plugins with userdata params. (diff) | |
download | cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.gz cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.bz2 cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.lz cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.xz cuberite-8464f689ea214d3c30105ae58539885cf1268317.tar.zst cuberite-8464f689ea214d3c30105ae58539885cf1268317.zip |
Diffstat (limited to 'src/Items/ItemBoat.h')
-rw-r--r-- | src/Items/ItemBoat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h index 79c8e9589..31d1ca52e 100644 --- a/src/Items/ItemBoat.h +++ b/src/Items/ItemBoat.h @@ -29,9 +29,9 @@ 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 + virtual bool OnItemUse(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_Dir) override { - if (a_Dir > 0) + if (a_Dir != BLOCK_FACE_YM || a_Dir != BLOCK_FACE_NONE) { return false; } |