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
@@ -71,11 +71,11 @@ void cFallingBlock::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
// Fallen onto a solid block
|
||||
/*
|
||||
LOGD(
|
||||
"Sand: Checked below at {%d, %d, %d} (rel {%d, %d, %d}), it's %s, finishing the fall.",
|
||||
BlockX, BlockY, BlockZ,
|
||||
BlockX - a_Chunk.GetPosX() * cChunkDef::Width, BlockY, BlockZ - a_Chunk.GetPosZ() * cChunkDef::Width,
|
||||
ItemTypeToString(BlockBelow).c_str()
|
||||
FLOGD(
|
||||
"Sand: Checked below at {0} (rel {1}), it's {2}, finishing the fall.",
|
||||
Vector3i{BlockX, BlockY, BlockZ},
|
||||
cChunkDef::AbsoluteToRelative({BlockX, BlockY, BlockZ}, {a_Chunk.GetPosX(), a_Chunk.GetPosZ()}),
|
||||
ItemTypeToString(BlockBelow)
|
||||
);
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user