diff options
author | TheHyper45 <dawid.priv@o2.pl> | 2021-06-20 13:24:15 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2022-04-12 01:06:40 +0200 |
commit | 4bad8d859efa4119c0140e2d8f02cef01b9a44d3 (patch) | |
tree | 6d54dbe31e1121f3fa18dd5c464bf88274de98af /src/WorldStorage | |
parent | Some refinements (diff) | |
download | cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.tar cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.tar.gz cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.tar.bz2 cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.tar.lz cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.tar.xz cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.tar.zst cuberite-4bad8d859efa4119c0140e2d8f02cef01b9a44d3.zip |
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); } |