forked from MinecraftUtilities/Backend
use originalId on PlayerService#usernameToUuid
This commit is contained in:
parent
2ff9122a99
commit
b1bcaad8dc
@ -48,7 +48,7 @@ public class PlayerService {
|
|||||||
log.info("Getting player: {}", originalId);
|
log.info("Getting player: {}", originalId);
|
||||||
UUID uuid = PlayerUtils.getUuidFromString(originalId);
|
UUID uuid = PlayerUtils.getUuidFromString(originalId);
|
||||||
if (uuid == null) { // If the id is not a valid uuid, get the uuid from the username
|
if (uuid == null) { // If the id is not a valid uuid, get the uuid from the username
|
||||||
uuid = usernameToUuid(id);
|
uuid = usernameToUuid(originalId);
|
||||||
}
|
}
|
||||||
|
|
||||||
Optional<CachedPlayer> cachedPlayer = playerCacheRepository.findById(uuid);
|
Optional<CachedPlayer> cachedPlayer = playerCacheRepository.findById(uuid);
|
||||||
|
Loading…
Reference in New Issue
Block a user