summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemItemFrame.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 01:29:10 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-18 01:29:10 +0100
commit7a23e27fc532bdfed0038804b0060a6f7f5c0f54 (patch)
tree6632e3960ad63f6e1bbae82dd2a1032094819ca6 /src/Items/ItemItemFrame.h
parentUsed new BLOCK_FACE constants (diff)
downloadcuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.tar
cuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.tar.gz
cuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.tar.bz2
cuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.tar.lz
cuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.tar.xz
cuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.tar.zst
cuberite-7a23e27fc532bdfed0038804b0060a6f7f5c0f54.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemItemFrame.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h
index a403778ad..f286fffd0 100644
--- a/src/Items/ItemItemFrame.h
+++ b/src/Items/ItemItemFrame.h
@@ -34,6 +34,8 @@ public:
if (Block == E_BLOCK_AIR)
{
int Dir = 0;
+
+ // The client uses different values for painting directions and block faces. Our constants are for the block faces, so we convert them here to painting faces
switch (a_Dir)
{
case BLOCK_FACE_ZP: break; // Initialised to zero