diff options
Diffstat (limited to 'src/WorldStorage')
-rw-r--r-- | src/WorldStorage/NamespaceSerializer.cpp | 2 | ||||
-rw-r--r-- | src/WorldStorage/NamespaceSerializer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NamespaceSerializer.cpp b/src/WorldStorage/NamespaceSerializer.cpp index cf4e8aeb3..9d8eb5613 100644 --- a/src/WorldStorage/NamespaceSerializer.cpp +++ b/src/WorldStorage/NamespaceSerializer.cpp @@ -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"; } diff --git a/src/WorldStorage/NamespaceSerializer.h b/src/WorldStorage/NamespaceSerializer.h index 378f72729..64739a7cd 100644 --- a/src/WorldStorage/NamespaceSerializer.h +++ b/src/WorldStorage/NamespaceSerializer.h @@ -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); } |