Fix incorrect formatter invocation
This commit is contained in:
parent
e3de0aef64
commit
9b68fab8ed
@ -836,7 +836,7 @@ static int GetRelBlock(lua_State * a_LuaState)
|
|||||||
readVector3iOverloadParams(L, 2, coords, "coords");
|
readVector3iOverloadParams(L, 2, coords, "coords");
|
||||||
if (!self->IsValidRelCoords(coords))
|
if (!self->IsValidRelCoords(coords))
|
||||||
{
|
{
|
||||||
return L.ApiParamError("The coords ({0}) are out of range ({1})",
|
return L.FApiParamError("The coords ({0}) are out of range ({1})",
|
||||||
coords, (self->GetSize() - Vector3i(1, 1, 1))
|
coords, (self->GetSize() - Vector3i(1, 1, 1))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -669,7 +669,7 @@ OwnedBlockEntity cWSSAnvil::LoadBlockEntityFromNBT(const cParsedNBT & a_NBT, int
|
|||||||
{
|
{
|
||||||
TypeName.assign(a_NBT.GetData(TagID), static_cast<size_t>(a_NBT.GetDataLength(TagID)));
|
TypeName.assign(a_NBT.GetData(TagID), static_cast<size_t>(a_NBT.GetDataLength(TagID)));
|
||||||
}
|
}
|
||||||
LOGINFO("WorldLoader({0}): Block entity mismatch: block type {1} ({2}), type \"{3}\", at {4}; the entity will be lost.",
|
FLOGINFO("WorldLoader({0}): Block entity mismatch: block type {1} ({2}), type \"{3}\", at {4}; the entity will be lost.",
|
||||||
m_World->GetName(),
|
m_World->GetName(),
|
||||||
ItemTypeToString(a_BlockType), a_BlockType, TypeName,
|
ItemTypeToString(a_BlockType), a_BlockType, TypeName,
|
||||||
a_Pos
|
a_Pos
|
||||||
@ -879,7 +879,7 @@ bool cWSSAnvil::CheckBlockEntityType(const cParsedNBT & a_NBT, int a_TagIdx, con
|
|||||||
expectedTypes.append(et);
|
expectedTypes.append(et);
|
||||||
expectedTypes.push_back('\"');
|
expectedTypes.push_back('\"');
|
||||||
}
|
}
|
||||||
LOGWARNING("Block entity type mismatch: exp {0}, got \"{1}\". The block entity at {2} will lose all its properties.",
|
FLOGWARNING("Block entity type mismatch: exp {0}, got \"{1}\". The block entity at {2} will lose all its properties.",
|
||||||
expectedTypes.c_str() + 2, // Skip the first ", " that is extra in the string
|
expectedTypes.c_str() + 2, // Skip the first ", " that is extra in the string
|
||||||
AString(a_NBT.GetData(TagID), static_cast<size_t>(a_NBT.GetDataLength(TagID))),
|
AString(a_NBT.GetData(TagID), static_cast<size_t>(a_NBT.GetDataLength(TagID))),
|
||||||
a_Pos
|
a_Pos
|
||||||
|
Loading…
Reference in New Issue
Block a user