1
0

Merge pull request #660 from worktycho/boatsFix

Fixed stupid mistake in conditional
This commit is contained in:
Mattes D 2014-02-11 06:45:26 +01:00
commit 3d9deca2e0

View File

@ -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;
}