diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-04-03 16:07:18 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-04-03 16:07:18 +0200 |
commit | b5a646d94a2189d12517f2cea128d6394d16873e (patch) | |
tree | 316c8703cc3b633fa739144c77497062b3b7f8b8 /source | |
parent | Attempted a fix for cSocket's Bind() call on MacOS-based systems (initializing the whole sockaddr_in structure with zeroes first) (diff) | |
download | cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.tar cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.tar.gz cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.tar.bz2 cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.tar.lz cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.tar.xz cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.tar.zst cuberite-b5a646d94a2189d12517f2cea128d6394d16873e.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cClientHandle.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 567a705c6..7ec5e9834 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -759,7 +759,10 @@ void cClientHandle::HandleBlockDig(cPacket_BlockDig * a_Packet) return;
}
- LOG("OnBlockDig: %i %i %i Dir: %i Stat: %i", a_Packet->m_PosX, a_Packet->m_PosY, a_Packet->m_PosZ, a_Packet->m_Direction, a_Packet->m_Status);
+ LOGD("OnBlockDig: {%i, %i, %i} Dir: %i Stat: %i",
+ a_Packet->m_PosX, a_Packet->m_PosY, a_Packet->m_PosZ,
+ a_Packet->m_Direction, a_Packet->m_Status
+ );
if (a_Packet->m_Status == 0x04) // Drop block
{
m_Player->TossItem(false);
@@ -969,7 +972,10 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet) cItem Item;
Item.m_ItemID = Equipped.m_ItemID;
Item.m_ItemCount = 1;
- LOG("Placing item of type: %i", (int)a_Packet->m_ItemType);
+ LOGD("Placing item of type %i at {%d, %d, %d}",
+ (int)a_Packet->m_ItemType,
+ a_Packet->m_PosX, a_Packet->m_PosY, a_Packet->m_PosZ
+ );
// Hacked in edible items go!~
// TODO: Handle hunger
|