diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-18 01:01:20 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-18 01:01:20 +0200 |
commit | 480991d1ac07c1715bf090a4d81e988a00803cf3 (patch) | |
tree | 2349c93e693142ad212ead0fed6033c00819b455 /source/Blocks/BlockRedstoneRepeater.cpp | |
parent | Snow now supports meta values (diff) | |
download | cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.tar cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.tar.gz cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.tar.bz2 cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.tar.lz cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.tar.xz cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.tar.zst cuberite-480991d1ac07c1715bf090a4d81e988a00803cf3.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockRedstoneRepeater.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/Blocks/BlockRedstoneRepeater.cpp b/source/Blocks/BlockRedstoneRepeater.cpp index 3bc879435..5e491ee5a 100644 --- a/source/Blocks/BlockRedstoneRepeater.cpp +++ b/source/Blocks/BlockRedstoneRepeater.cpp @@ -4,6 +4,7 @@ #include "../Item.h" #include "../World.h" #include "../Simulator/RedstoneSimulator.h" +#include "../Entities/Player.h" @@ -44,3 +45,18 @@ void cBlockRedstoneRepeaterHandler::OnDigging(cWorld *a_World, cPlayer *a_Player +bool cBlockRedstoneRepeaterHandler::GetPlacementBlockTypeMeta( + cWorld * a_World, cPlayer * a_Player, + int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, + int a_CursorX, int a_CursorY, int a_CursorZ, + BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta +) +{ + a_BlockType = m_BlockType; + a_BlockMeta = cRedstoneSimulator::RepeaterRotationToMetaData(a_Player->GetRotation()); + return true; +} + + + + |