diff options
author | TheHyper45 <dawid.priv@o2.pl> | 2021-06-20 13:14:36 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2022-04-12 01:06:40 +0200 |
commit | 3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7 (patch) | |
tree | 50a422f0c97dccf1259b726e577e583d4040bde8 | |
parent | NamespaceSerializer::Prettify function now takes a string and converts it into a prettfied string (diff) | |
download | cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.tar cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.tar.gz cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.tar.bz2 cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.tar.lz cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.tar.xz cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.tar.zst cuberite-3b6b456b0f359a53a2b218a1a5cc81cc8ddf21f7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/NamespaceSerializer.cpp | 7 | ||||
-rw-r--r-- | src/WorldStorage/NamespaceSerializer.h | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/WorldStorage/NamespaceSerializer.cpp b/src/WorldStorage/NamespaceSerializer.cpp index 52a2973a0..cf4e8aeb3 100644 --- a/src/WorldStorage/NamespaceSerializer.cpp +++ b/src/WorldStorage/NamespaceSerializer.cpp @@ -553,13 +553,6 @@ eMonsterType NamespaceSerializer::ToMonsterType(const std::string_view a_ID) AString NamespaceSerializer::Prettify(AString a_Name, const bool a_IsTamed) { - /** - Examples: - Input: "wolf", Output: "Wolf" - Input: "snow_golem", Output: "Snow Golem" - Input: "skeleton_horse", Output: "Skeleton Horse" - */ - // 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) diff --git a/src/WorldStorage/NamespaceSerializer.h b/src/WorldStorage/NamespaceSerializer.h index e21b487d7..378f72729 100644 --- a/src/WorldStorage/NamespaceSerializer.h +++ b/src/WorldStorage/NamespaceSerializer.h @@ -24,5 +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" AString Prettify(AString a_Name, const bool a_IsTamed = false); } |