diff options
author | madmaxoft <github@xoft.cz> | 2014-07-18 22:45:50 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-18 22:45:50 +0200 |
commit | 749f073d7092d3ad44005f061132bdd71cef8e7b (patch) | |
tree | ce9a9170b1cc0a4de41f2bd5df1da900bac9d206 /src/Items/ItemSign.h | |
parent | Monster fixes (diff) | |
parent | Normalized code style for both sign handlers. (diff) | |
download | cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.tar cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.tar.gz cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.tar.bz2 cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.tar.lz cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.tar.xz cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.tar.zst cuberite-749f073d7092d3ad44005f061132bdd71cef8e7b.zip |
Diffstat (limited to 'src/Items/ItemSign.h')
-rw-r--r-- | src/Items/ItemSign.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Items/ItemSign.h b/src/Items/ItemSign.h index 235a4fa93..0fa0fa0be 100644 --- a/src/Items/ItemSign.h +++ b/src/Items/ItemSign.h @@ -3,7 +3,8 @@ #include "ItemHandler.h" #include "../World.h" -#include "../Blocks/BlockSign.h" +#include "../Blocks/BlockSignPost.h" +#include "../Blocks/BlockWallSign.h" @@ -34,12 +35,12 @@ public: { if (a_BlockFace == BLOCK_FACE_TOP) { - a_BlockMeta = cBlockSignHandler::RotationToMetaData(a_Player->GetYaw()); + a_BlockMeta = cBlockSignPostHandler::RotationToMetaData(a_Player->GetYaw()); a_BlockType = E_BLOCK_SIGN_POST; } else { - a_BlockMeta = cBlockSignHandler::DirectionToMetaData(a_BlockFace); + a_BlockMeta = cBlockWallSignHandler::DirectionToMetaData(a_BlockFace); a_BlockType = E_BLOCK_WALLSIGN; } return true; |