diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-01 17:35:48 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-01 17:35:48 +0100 |
commit | 6e39ed3868fa8feba676b0cda28194c249e549ce (patch) | |
tree | 9d3bbbff53ea50adb54389268c95aa7c79ea92c3 /src/ClientHandle.cpp | |
parent | Changed Signiture of OnDestroyedByPlayer (diff) | |
download | cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.tar cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.tar.gz cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.tar.bz2 cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.tar.lz cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.tar.xz cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.tar.zst cuberite-6e39ed3868fa8feba676b0cda28194c249e549ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 1dd51ed82..6b61eaae8 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -767,9 +767,9 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc m_Player->GetWorld()->BroadcastBlockBreakAnimation(m_UniqueID, m_BlockDigAnimX, m_BlockDigAnimY, m_BlockDigAnimZ, 0, this); cWorld * World = m_Player->GetWorld(); - + cChunkInterface ChunkInterface(World->GetChunkMap()); cBlockHandler * Handler = cBlockHandler::GetBlockHandler(a_OldBlock); - Handler->OnDigging(World, m_Player, a_BlockX, a_BlockY, a_BlockZ); + Handler->OnDigging(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ); cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem()); ItemHandler->OnDiggingBlock(World, m_Player, m_Player->GetEquippedItem(), a_BlockX, a_BlockY, a_BlockZ, a_BlockFace); @@ -786,7 +786,7 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc if (Handler->IsClickedThrough()) { - Handler->OnDigging(World, m_Player, pX, pY, pZ); + Handler->OnDigging(ChunkInterface, *World, m_Player, pX, pY, pZ); } } } |