From 4bad8d859efa4119c0140e2d8f02cef01b9a44d3 Mon Sep 17 00:00:00 2001 From: TheHyper45 Date: Sun, 20 Jun 2021 12:24:15 +0100 Subject: Yet another style fix --- src/WorldStorage/NamespaceSerializer.cpp | 2 +- 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 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); } -- cgit v1.2.3