mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 06:18:00 +01:00
Fix stacktrace spam when profile id is null (hypixel)
This commit is contained in:
parent
2fc4dcae90
commit
810fc938a4
1 changed files with 4 additions and 0 deletions
|
@ -116,6 +116,10 @@ public final class HDSkinManager implements IResourceManagerReloadListener {
|
|||
private CompletableFuture<Map<Type, MinecraftProfileTexture>> loadProfileData(GameProfile profile) {
|
||||
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
if (profile.getId() == null) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
|
||||
Map<Type, MinecraftProfileTexture> textureMap = Maps.newEnumMap(Type.class);
|
||||
|
||||
for (SkinServer server : skinServers) {
|
||||
|
|
Loading…
Reference in a new issue