Refactored case-conversion functions.
StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
This commit is contained in:
@@ -2495,7 +2495,7 @@ void cWSSAnvil::LoadWolfOwner(cWolf & a_Wolf, const cParsedNBT & a_NBT, int a_Ta
|
||||
int OwnerUUIDIdx = a_NBT.FindChildByName(a_TagIdx, "OwnerUUID");
|
||||
if (OwnerUUIDIdx > 0)
|
||||
{
|
||||
OwnerUUID = cMojangAPI::MakeUUIDShort(a_NBT.GetString(OwnerUUIDIdx));
|
||||
OwnerUUID = a_NBT.GetString(OwnerUUIDIdx);
|
||||
}
|
||||
int OwnerIdx = a_NBT.FindChildByName(a_TagIdx, "Owner");
|
||||
if (OwnerIdx > 0)
|
||||
@@ -2520,6 +2520,11 @@ void cWSSAnvil::LoadWolfOwner(cWolf & a_Wolf, const cParsedNBT & a_NBT, int a_Ta
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Normalize the UUID:
|
||||
OwnerUUID = cMojangAPI::MakeUUIDShort(OwnerUUID);
|
||||
}
|
||||
|
||||
// Convert UUID to name, if needed:
|
||||
if (OwnerName.empty())
|
||||
|
||||
Reference in New Issue
Block a user