1
0

Remove spammy LOGD output

This commit is contained in:
Tiger Wang 2021-06-22 19:31:29 +01:00
parent b98e2c17e0
commit 3252b3d4dc
2 changed files with 4 additions and 2 deletions

View File

@ -1687,9 +1687,11 @@ void cEntity::SetSwimState(cChunk & a_Chunk)
BLOCKTYPE Block; BLOCKTYPE Block;
if (!a_Chunk.UnboundedRelGetBlockType(x, y, z, Block)) if (!a_Chunk.UnboundedRelGetBlockType(x, y, z, Block))
{ {
/*
LOGD("SetSwimState failure: RelX = %d, RelY = %d, RelZ = %d, Pos = %.02f, %.02f}", LOGD("SetSwimState failure: RelX = %d, RelY = %d, RelZ = %d, Pos = %.02f, %.02f}",
x, y, z, GetPosX(), GetPosZ() x, y, z, GetPosX(), GetPosZ()
); );
*/
continue; continue;
} }
@ -1716,9 +1718,11 @@ void cEntity::SetSwimState(cChunk & a_Chunk)
BLOCKTYPE BlockIn; BLOCKTYPE BlockIn;
if (!a_Chunk.UnboundedRelGetBlockType(RelX, HeadHeight, RelZ, BlockIn)) if (!a_Chunk.UnboundedRelGetBlockType(RelX, HeadHeight, RelZ, BlockIn))
{ {
/*
LOGD("SetSwimState failure: RelX = %d, RelY = %d, RelZ = %d, Pos = %.02f, %.02f}", LOGD("SetSwimState failure: RelX = %d, RelY = %d, RelZ = %d, Pos = %.02f, %.02f}",
RelX, HeadHeight, RelZ, GetPosX(), GetPosZ() RelX, HeadHeight, RelZ, GetPosX(), GetPosZ()
); );
*/
return; return;
} }
m_IsHeadInWater = IsBlockWater(BlockIn); m_IsHeadInWater = IsBlockWater(BlockIn);

View File

@ -3136,8 +3136,6 @@ void cPlayer::SpawnOn(cClientHandle & a_Client)
return; return;
} }
LOGD("Spawing %s on %s", GetName().c_str(), a_Client.GetUsername().c_str());
a_Client.SendPlayerSpawn(*this); a_Client.SendPlayerSpawn(*this);
a_Client.SendEntityHeadLook(*this); a_Client.SendEntityHeadLook(*this);
a_Client.SendEntityEquipment(*this, 0, m_Inventory.GetEquippedItem()); a_Client.SendEntityEquipment(*this, 0, m_Inventory.GetEquippedItem());