diff options
author | andrew <xdotftw@gmail.com> | 2014-03-02 20:25:05 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-02 20:25:05 +0100 |
commit | 070d483236279e69c736e740fa8459d3ac627790 (patch) | |
tree | d4431ca58c236556056e041b3d888ea61e7ac144 /src/ClientHandle.cpp | |
parent | Fixed MSVC warnings in DeprecatedBindings. (diff) | |
download | cuberite-070d483236279e69c736e740fa8459d3ac627790.tar cuberite-070d483236279e69c736e740fa8459d3ac627790.tar.gz cuberite-070d483236279e69c736e740fa8459d3ac627790.tar.bz2 cuberite-070d483236279e69c736e740fa8459d3ac627790.tar.lz cuberite-070d483236279e69c736e740fa8459d3ac627790.tar.xz cuberite-070d483236279e69c736e740fa8459d3ac627790.tar.zst cuberite-070d483236279e69c736e740fa8459d3ac627790.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 07a8984c5..6982a6227 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -838,7 +838,7 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc cWorld * World = m_Player->GetWorld(); cChunkInterface ChunkInterface(World->GetChunkMap()); - cBlockHandler * Handler = cBlockHandler::GetBlockHandler(a_OldBlock); + cBlockHandler * Handler = cBlockInfo::GetHandler(a_OldBlock); Handler->OnDigging(ChunkInterface, *World, m_Player, a_BlockX, a_BlockY, a_BlockZ); cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem()); @@ -852,7 +852,7 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc int pZ = a_BlockZ; AddFaceDirection(pX, pY, pZ, a_BlockFace); // Get the block in front of the clicked coordinates (m_bInverse defaulted to false) - Handler = cBlockHandler::GetBlockHandler(World->GetBlock(pX, pY, pZ)); + Handler = cBlockInfo::GetHandler(World->GetBlock(pX, pY, pZ)); if (Handler->IsClickedThrough()) { @@ -963,7 +963,7 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e BLOCKTYPE BlockType; NIBBLETYPE BlockMeta; World->GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, BlockType, BlockMeta); - cBlockHandler * BlockHandler = cBlockHandler::GetBlockHandler(BlockType); + cBlockHandler * BlockHandler = cBlockInfo::GetHandler(BlockType); if (BlockHandler->IsUseable() && !m_Player->IsCrouched()) { |