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
This commit is contained in:
committed by
Alexander Harkness
parent
73689024f0
commit
4727ed2084
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user