diff options
author | worktycho <work.tycho@gmail.com> | 2014-06-04 13:23:28 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-06-04 13:23:28 +0200 |
commit | 2de36c8ccc058429c74e139a97d832c29e04b8fb (patch) | |
tree | 612af1395f17af0c2fb7efff7fc9fa5f63d6bfca /src/ClientHandle.cpp | |
parent | Fixed buffer overflow in JSON. (diff) | |
parent | derp (diff) | |
download | cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.gz cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.bz2 cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.lz cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.xz cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.tar.zst cuberite-2de36c8ccc058429c74e139a97d832c29e04b8fb.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 080e859d1..d47ceff0e 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1306,7 +1306,7 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, e if (!a_ItemHandler.GetPlacementBlockTypeMeta(World, m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta)) { // Handler refused the placement, send that information back to the client: - World->SendBlockTo(a_BlockX, a_BlockY, a_BlockY, m_Player); + World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); m_Player->GetInventory().SendEquippedSlot(); return; } |