1
0

Fixed possible ASSERT failure

This commit is contained in:
Tiger Wang 2014-02-18 21:54:53 +00:00
parent 05789f9e66
commit 5b961453d1

View File

@ -21,7 +21,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_NONE)
if ((a_Dir == BLOCK_FACE_NONE) || (a_Dir == BLOCK_FACE_YP) || (a_Dir == BLOCK_FACE_YM))
{
// Client sends this if clicked on top or bottom face
return false;