Fix uuid version check

This commit is contained in:
Phoenix616 2020-04-27 21:39:46 +01:00
parent 744b02a447
commit c6f6672188
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class NameManager implements Listener {
public static Account getOrCreateAccount(UUID id, String name) {
Validate.notNull(id, "UUID of player is null?");
Validate.notNull(name, "Name of player " + id + " is null?");
Validate.isTrue(uuidVersion > -1 && id.version() == uuidVersion, "Invalid OfflinePlayer! " + id + " is not of server version " + uuidVersion);
Validate.isTrue(uuidVersion < 0 || id.version() == uuidVersion, "Invalid OfflinePlayer! " + id + " is not of server version " + uuidVersion);
Account account = getAccount(id);
if (account == null) {