summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NamespaceSerializer.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-19 22:00:17 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-21 01:50:09 +0200
commit6617d439833060619b0fd99efd51ea5c550c69fd (patch)
treeeee8d2523c01ba1f06239c4ee8e3ae2bbc508a0b /src/WorldStorage/NamespaceSerializer.cpp
parentMore tar incompatibility changes (diff)
downloadcuberite-6617d439833060619b0fd99efd51ea5c550c69fd.tar
cuberite-6617d439833060619b0fd99efd51ea5c550c69fd.tar.gz
cuberite-6617d439833060619b0fd99efd51ea5c550c69fd.tar.bz2
cuberite-6617d439833060619b0fd99efd51ea5c550c69fd.tar.lz
cuberite-6617d439833060619b0fd99efd51ea5c550c69fd.tar.xz
cuberite-6617d439833060619b0fd99efd51ea5c550c69fd.tar.zst
cuberite-6617d439833060619b0fd99efd51ea5c550c69fd.zip
Diffstat (limited to 'src/WorldStorage/NamespaceSerializer.cpp')
-rw-r--r--src/WorldStorage/NamespaceSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NamespaceSerializer.cpp b/src/WorldStorage/NamespaceSerializer.cpp
index ee2f07dfd..e717e7b3e 100644
--- a/src/WorldStorage/NamespaceSerializer.cpp
+++ b/src/WorldStorage/NamespaceSerializer.cpp
@@ -258,14 +258,14 @@ namespace NamespaceSerializer
const auto NamespaceIndex = ID.find(':');
if (NamespaceIndex == std::string_view::npos)
{
- // No explicit namespace default to the Minecraft namespace:
+ // No explicit namespace defaults to the Minecraft namespace:
return { Namespace::Minecraft, ID };
}
const auto Namespace = ID.substr(0, NamespaceIndex);
if (Namespace == "minecraft")
{
- // An unprefixed ID in the vanilla Minecraft namespace
+ // An unprefixed ID in the vanilla Minecraft namespace.
const auto Value = ID.substr(NamespaceIndex + 1);
return { Namespace::Minecraft, Value };