Don't set username to null when a user is requested by uuid alone

This commit is contained in:
Luck 2019-11-24 00:40:29 +00:00
parent 233324f6c9
commit 6df64a29dc
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -59,7 +59,9 @@ public abstract class AbstractUserManager<T extends User> extends AbstractManage
@Override @Override
public T getOrMake(UUID id, String username) { public T getOrMake(UUID id, String username) {
T user = getOrMake(id); T user = getOrMake(id);
user.setUsername(username, false); if (username != null) {
user.setUsername(username, false);
}
return user; return user;
} }