From 6df64a29dc2df955191e10ec818546139d5ae4eb Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 24 Nov 2019 00:40:29 +0000 Subject: [PATCH] Don't set username to null when a user is requested by uuid alone --- .../common/model/manager/user/AbstractUserManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/model/manager/user/AbstractUserManager.java b/common/src/main/java/me/lucko/luckperms/common/model/manager/user/AbstractUserManager.java index 1312cd2b3..4870f4cc7 100644 --- a/common/src/main/java/me/lucko/luckperms/common/model/manager/user/AbstractUserManager.java +++ b/common/src/main/java/me/lucko/luckperms/common/model/manager/user/AbstractUserManager.java @@ -59,7 +59,9 @@ public abstract class AbstractUserManager extends AbstractManage @Override public T getOrMake(UUID id, String username) { T user = getOrMake(id); - user.setUsername(username, false); + if (username != null) { + user.setUsername(username, false); + } return user; }