From 6a77ae3c64d8de9927b9380994ed73d96bca33fa Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Fri, 20 Mar 2026 18:41:28 +0200 Subject: [PATCH] FIX: Skins loading --- src/client/player/LocalPlayer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/client/player/LocalPlayer.cpp b/src/client/player/LocalPlayer.cpp index 5c7f65e..ec14ca4 100755 --- a/src/client/player/LocalPlayer.cpp +++ b/src/client/player/LocalPlayer.cpp @@ -24,6 +24,7 @@ #include "../../platform/HttpClient.h" #include "../../platform/CThread.h" #include "../../util/StringUtils.h" +#include "client/Options.h" #if defined(_WIN32) #include @@ -328,12 +329,12 @@ LocalPlayer::LocalPlayer(Minecraft* minecraft, Level* level, const std::string& { this->dimension = dimension; _init(); - #ifndef STANDALONE_SERVER - printf("%s \n", name.c_str()); - if (!name.empty()) { - this->name = name; + if (minecraft->options.getStringValue(OPTIONS_USERNAME).size() != 0) { + textureName = "mob/char.png"; + + this->name = minecraft->options.getStringValue(OPTIONS_USERNAME); printf("test \n"); // Fetch user skin and cape from Mojang servers in the background (avoids blocking the main thread) // TODO: Fix this memory leak