summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.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/cClientHandle.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 '')
-rw-r--r--source/cClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index a2629133f..ad2fa7857 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -878,7 +878,7 @@ void cClientHandle::HandleBlockDig(int a_BlockX, int a_BlockY, int a_BlockZ, cha
else
{
cBlockHandler * Handler = cBlockHandler::GetBlockHandler(OldBlock);
- Handler->OnClick(World, m_Player, a_BlockX, a_BlockY, a_BlockZ);
+ Handler->OnDigging(World, m_Player, a_BlockX, a_BlockY, a_BlockZ);
ItemHandler->OnDiggingBlock(World, m_Player, &Equipped, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
@@ -892,7 +892,7 @@ void cClientHandle::HandleBlockDig(int a_BlockX, int a_BlockY, int a_BlockZ, cha
Handler = cBlockHandler::GetBlockHandler(World->GetBlock(pX, pY, pZ));
if (Handler->IsClickedThrough())
{
- Handler->OnClick(World, m_Player, pX, pY, pZ);
+ Handler->OnDigging(World, m_Player, pX, pY, pZ);
}
}
}
@@ -940,7 +940,7 @@ void cClientHandle::HandleBlockPlace(int a_BlockX, int a_BlockY, int a_BlockZ, c
cBlockHandler *Handler = cBlockHandler::GetBlockHandler(World->GetBlock(a_BlockX, a_BlockY, a_BlockZ));
if (Handler->IsUseable())
{
- Handler->OnClick(World, m_Player, a_BlockX, a_BlockY, a_BlockZ);
+ Handler->OnUse(World, m_Player, a_BlockX, a_BlockY, a_BlockZ);
}
else
{