diff options
author | Mattes D <github@xoft.cz> | 2014-02-11 06:45:26 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-02-11 06:45:26 +0100 |
commit | 3d9deca2e090bcff451856d5e36d815b0005b6a7 (patch) | |
tree | 1e8a63a1f54b5a4e45a89b1f2a0ab839865adae7 | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
parent | Added additional parenthasies (diff) | |
download | cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.tar cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.tar.gz cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.tar.bz2 cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.tar.lz cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.tar.xz cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.tar.zst cuberite-3d9deca2e090bcff451856d5e36d815b0005b6a7.zip |
-rw-r--r-- | src/Items/ItemBoat.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h index dd6eaaf14..a28ec8e22 100644 --- a/src/Items/ItemBoat.h +++ b/src/Items/ItemBoat.h @@ -1,4 +1,3 @@ - // ItemBoat.h // Declares the various boat ItemHandlers @@ -31,7 +30,7 @@ public: 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; } |