summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 22:54:53 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 22:54:53 +0100
commit5b961453d12d78a8901910d2f419093b82feb533 (patch)
treead9d9d754aeba42bfb379f3187254ae992c49848
parentChanged BlockFace type to eBlockFace (diff)
downloadcuberite-5b961453d12d78a8901910d2f419093b82feb533.tar
cuberite-5b961453d12d78a8901910d2f419093b82feb533.tar.gz
cuberite-5b961453d12d78a8901910d2f419093b82feb533.tar.bz2
cuberite-5b961453d12d78a8901910d2f419093b82feb533.tar.lz
cuberite-5b961453d12d78a8901910d2f419093b82feb533.tar.xz
cuberite-5b961453d12d78a8901910d2f419093b82feb533.tar.zst
cuberite-5b961453d12d78a8901910d2f419093b82feb533.zip
-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;