Tweak: LegacyLoader UUID fallback logic

This commit is contained in:
33 committed 2022-07-29 01:14:50 +08:00
1 parent 52caeb3bdc
commit 51aec265be
2 files changed
+110 -78

No files matched your search

@@ -196,7 +196,7 @@ public class CustomSkinLoader {
//CustomSkinLoader needs username to load standard skin, if username not exist, only textures in NBT can be used
//Authlib 3.11.50 makes empty username to "\u0020"
if (username == null || username.equals("\u0020") || credential == null) {
if (username == null || username.isEmpty() || username.equals("\u0020") || credential == null) {
return dynamicSkullManager.getTexture(gameProfile);
}
if (config.forceUpdateSkull ? profileCache.isReady(credential) : profileCache.isExist(credential)) {