From b1bcaad8dcbf82d1d929f645e48634055d9e04bb Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 10 Apr 2024 12:16:24 +0100 Subject: [PATCH] use originalId on PlayerService#usernameToUuid --- src/main/java/cc.fascinated/service/PlayerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc.fascinated/service/PlayerService.java b/src/main/java/cc.fascinated/service/PlayerService.java index 4d8c718..c91310e 100644 --- a/src/main/java/cc.fascinated/service/PlayerService.java +++ b/src/main/java/cc.fascinated/service/PlayerService.java @@ -48,7 +48,7 @@ public class PlayerService { log.info("Getting player: {}", originalId); UUID uuid = PlayerUtils.getUuidFromString(originalId); 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 = playerCacheRepository.findById(uuid);