diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-18 22:50:05 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-18 22:50:05 +0100 |
commit | 65bc09f8e803904560f56b1cfeaabfc8620d33b0 (patch) | |
tree | 6fe74aed2cd4d629c9b77a84018720244e9fdfe4 /source/ClientHandle.cpp | |
parent | CraftingRecipes parse now dumps lines it cannot parse. (diff) | |
download | cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.gz cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.bz2 cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.lz cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.xz cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.zst cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.zip |
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index c25a482ca..ba1c8db35 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -614,12 +614,13 @@ void cClientHandle::HandleBlockDig(int a_BlockX, int a_BlockY, int a_BlockZ, cha void cClientHandle::HandleBlockPlace(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, const cItem & a_HeldItem) { - LOGD("HandleBlockPlace: {%d, %d, %d}, face %d, itemtype: %d", - a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_HeldItem.m_ItemType + LOGD("HandleBlockPlace: {%d, %d, %d}, face %d, HeldItem: %s", + a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, ItemToFullString(a_HeldItem).c_str() ); if (!CheckBlockInteractionsRate()) { + LOGD("Too many block interactions, aborting placement"); return; } @@ -722,6 +723,7 @@ void cClientHandle::HandleBlockPlace(int a_BlockX, int a_BlockY, int a_BlockZ, c } else { + LOGD("Block refused placement here, aborting"); World->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); // Send the old block back to the player return; } |