diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-01 15:01:13 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-01 15:01:13 +0100 |
commit | cf3b4ec226034b006fd646b395f4e8a609f6f378 (patch) | |
tree | e8c88b1d734660b2b7640d6cf31a62729e05b92c /src/ClientHandle.cpp | |
parent | Changed pointers to references (diff) | |
download | cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.tar cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.tar.gz cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.tar.bz2 cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.tar.lz cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.tar.xz cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.tar.zst cuberite-cf3b4ec226034b006fd646b395f4e8a609f6f378.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 2ec9a87af..1dd51ed82 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -832,8 +832,8 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo cWorld * World = m_Player->GetWorld(); ItemHandler->OnBlockDestroyed(World, m_Player, m_Player->GetEquippedItem(), a_BlockX, a_BlockY, a_BlockZ); // The ItemHandler is also responsible for spawning the pickups - - BlockHandler(a_OldBlock)->OnDestroyedByPlayer(World, m_Player, a_BlockX, a_BlockY, a_BlockZ); + cChunkInterface ChunkInterface(World->GetChunkMap()); + BlockHandler(a_OldBlock)->OnDestroyedByPlayer(ChunkInterface,*World, m_Player, a_BlockX, a_BlockY, a_BlockZ); World->BroadcastSoundParticleEffect(2001, a_BlockX, a_BlockY, a_BlockZ, a_OldBlock, this); World->DigBlock(a_BlockX, a_BlockY, a_BlockZ); @@ -1002,7 +1002,8 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, c BlockHandler(ClickedBlock)->DoesIgnoreBuildCollision(m_Player, ClickedBlockMeta) ) { - BlockHandler(ClickedBlock)->OnDestroyedByPlayer(World, m_Player, a_BlockX, a_BlockY, a_BlockZ); + cChunkInterface ChunkInterface(World->GetChunkMap()); + BlockHandler(ClickedBlock)->OnDestroyedByPlayer(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ); } else { |