From 4727ed20846bb3d1a9eabb27aaaa9c5524129556 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 24 Sep 2018 21:33:39 +0100 Subject: Add a formatting function for Vector3 (#4282) * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG --- src/SetChunkData.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/SetChunkData.cpp') diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp index fad61ef1a..60a27d43a 100644 --- a/src/SetChunkData.cpp +++ b/src/SetChunkData.cpp @@ -137,10 +137,10 @@ void cSetChunkData::RemoveInvalidBlockEntities(void) if (EntityBlockType != WorldBlockType) { // Bad blocktype, remove the block entity: - LOGD("Block entity blocktype mismatch at {%d, %d, %d}: entity for blocktype %s(%d) in block %s(%d). Deleting the block entity.", - BlockEntity->GetPosX(), BlockEntity->GetPosY(), BlockEntity->GetPosZ(), - ItemTypeToString(EntityBlockType).c_str(), EntityBlockType, - ItemTypeToString(WorldBlockType).c_str(), WorldBlockType + FLOGD("Block entity blocktype mismatch at {0}: entity for blocktype {1}({2}) in block {3}({4}). Deleting the block entity.", + BlockEntity->GetPos(), + ItemTypeToString(EntityBlockType), EntityBlockType, + ItemTypeToString(WorldBlockType), WorldBlockType ); delete BlockEntity; itr = m_BlockEntities.erase(itr); -- cgit v1.2.3