summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-11 08:50:30 +0100
committermadmaxoft <github@xoft.cz>2014-02-11 08:50:30 +0100
commit8a8997cc38a5719de7f1b30575f0aac54bbada95 (patch)
treea124575c730bbb2a9005b780069856336b9c1eb5 /src
parentAPIDump: Documented cWorld:ChunkStay(). (diff)
parentMerge pull request #660 from worktycho/boatsFix (diff)
downloadcuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.tar
cuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.tar.gz
cuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.tar.bz2
cuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.tar.lz
cuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.tar.xz
cuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.tar.zst
cuberite-8a8997cc38a5719de7f1b30575f0aac54bbada95.zip
Diffstat (limited to 'src')
-rw-r--r--src/Items/ItemBoat.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemBoat.h b/src/Items/ItemBoat.h
index 31d1ca52e..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 != BLOCK_FACE_YM || a_Dir != BLOCK_FACE_NONE)
+ if ((a_Dir != BLOCK_FACE_YM) && (a_Dir != BLOCK_FACE_NONE))
{
return false;
}