summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2018-07-20 01:30:09 +0200
committerGitHub <noreply@github.com>2018-07-20 01:30:09 +0200
commit4fbf04413d68446777832b6c980bfac7879903c1 (patch)
tree8d2a64e019c4f436c89e56633b9db3d7c6ae9fef /src/ClientHandle.cpp
parentcBlockArea: Write all present data types by default (#4252) (diff)
downloadcuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar
cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.gz
cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.bz2
cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.lz
cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.xz
cuberite-4fbf04413d68446777832b6c980bfac7879903c1.tar.zst
cuberite-4fbf04413d68446777832b6c980bfac7879903c1.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index ff649ea4d..bbcb64d33 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -273,11 +273,9 @@ cUUID cClientHandle::GenerateOfflineUUID(const AString & a_Username)
// Online UUIDs are always version 4 (random)
// We use Version 3 (MD5 hash) UUIDs for the offline UUIDs
// This guarantees that they will never collide with an online UUID and can be distinguished.
+ // This is also consistent with the vanilla offline UUID scheme.
- // First make the username lowercase:
- AString lcUsername = StrToLower(a_Username);
-
- return cUUID::GenerateVersion3(lcUsername);
+ return cUUID::GenerateVersion3("OfflinePlayer:" + a_Username);
}