summaryrefslogtreecommitdiffstats
path: root/source/blocks/BlockRedstoneRepeater.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-19 12:44:19 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-19 12:44:19 +0200
commitf6ae6002c3db2535a9858cf88537845245e6e7ba (patch)
tree8ff2054270b689487d2d593734a09b5f04b9771f /source/blocks/BlockRedstoneRepeater.cpp
parentAndroid: Finally a log! :D (diff)
downloadcuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.tar
cuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.tar.gz
cuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.tar.bz2
cuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.tar.lz
cuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.tar.xz
cuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.tar.zst
cuberite-f6ae6002c3db2535a9858cf88537845245e6e7ba.zip
Diffstat (limited to 'source/blocks/BlockRedstoneRepeater.cpp')
-rw-r--r--source/blocks/BlockRedstoneRepeater.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blocks/BlockRedstoneRepeater.cpp b/source/blocks/BlockRedstoneRepeater.cpp
index 79214069a..4921cd6f7 100644
--- a/source/blocks/BlockRedstoneRepeater.cpp
+++ b/source/blocks/BlockRedstoneRepeater.cpp
@@ -22,11 +22,16 @@ void cBlockRedstoneRepeaterHandler::OnDestroyed(cWorld *a_World, int a_X, int a_
Redstone.ChangeRedstone(a_X, a_Y, a_Z, false);
}
-void cBlockRedstoneRepeaterHandler::OnClick(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
+void cBlockRedstoneRepeaterHandler::OnUse(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
{
a_World->FastSetBlock(a_X, a_Y, a_Z, m_BlockID, ((a_World->GetBlockMeta(a_X, a_Y, a_Z) + 0x04) & 0x0f));
}
+void cBlockRedstoneRepeaterHandler::OnDigging(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z)
+{
+ OnUse(a_World, a_Player, a_X, a_Y, a_Z);
+}
+
void cBlockRedstoneRepeaterHandler::PlaceBlock(cWorld *a_World, cPlayer *a_Player, NIBBLETYPE a_BlockMeta, int a_X, int a_Y, int a_Z, char a_Dir)
{
a_World->SetBlock(a_X, a_Y, a_Z, m_BlockID, cRedstone::RepeaterRotationToMetaData(a_Player->GetRotation()));