Yet another style fix

This commit is contained in:
TheHyper45 2021-06-20 12:24:15 +01:00 committed by Alexander Harkness
parent 3b6b456b0f
commit 4bad8d859e
2 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ AString NamespaceSerializer::Prettify(AString a_Name, const bool a_IsTamed)
{
// In older vanilla Minecraft version (before 1.14) ocelots and cats were the same mob.
// So after killing a tamed ocelot without a custom name the message will say "Cat was slain by [PlayerName]".
if (a_Name == "ocelot" && a_IsTamed)
if ((a_Name == "ocelot") && a_IsTamed)
{
return "Cat";
}

View File

@ -24,6 +24,6 @@ namespace NamespaceSerializer
std::pair<Namespace, std::string_view> SplitNamespacedID(std::string_view ID);
// Examples: Input: "wolf" -> Output: "Wolf" , Input: "iron_golem" -> Output: "Iron Golem"
// Examples: Input: "wolf" -> Output: "Wolf", Input: "iron_golem" -> Output: "Iron Golem"
AString Prettify(AString a_Name, const bool a_IsTamed = false);
}