summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 23:07:30 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 23:07:30 +0100
commit08229956ff07c9d6e863fd475f457aea217415ea (patch)
treeb1ce46d619a88a50d60ed4f4de82d5b645847bdb /src/Items
parentDe-breaked stuff (diff)
parentFixed possible ASSERT failure (diff)
downloadcuberite-08229956ff07c9d6e863fd475f457aea217415ea.tar
cuberite-08229956ff07c9d6e863fd475f457aea217415ea.tar.gz
cuberite-08229956ff07c9d6e863fd475f457aea217415ea.tar.bz2
cuberite-08229956ff07c9d6e863fd475f457aea217415ea.tar.lz
cuberite-08229956ff07c9d6e863fd475f457aea217415ea.tar.xz
cuberite-08229956ff07c9d6e863fd475f457aea217415ea.tar.zst
cuberite-08229956ff07c9d6e863fd475f457aea217415ea.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemItemFrame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h
index 4875e09dc..74e987445 100644
--- a/src/Items/ItemItemFrame.h
+++ b/src/Items/ItemItemFrame.h
@@ -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;