Fix stacktrace spam when profile id is null (hypixel)

This commit is contained in:
Matthew Messinger 2018-09-07 20:43:58 -04:00
parent 2fc4dcae90
commit 810fc938a4

View file

@ -116,6 +116,10 @@ public final class HDSkinManager implements IResourceManagerReloadListener {
private CompletableFuture<Map<Type, MinecraftProfileTexture>> loadProfileData(GameProfile profile) { private CompletableFuture<Map<Type, MinecraftProfileTexture>> loadProfileData(GameProfile profile) {
return CompletableFuture.supplyAsync(() -> { return CompletableFuture.supplyAsync(() -> {
if (profile.getId() == null) {
return Collections.emptyMap();
}
Map<Type, MinecraftProfileTexture> textureMap = Maps.newEnumMap(Type.class); Map<Type, MinecraftProfileTexture> textureMap = Maps.newEnumMap(Type.class);
for (SkinServer server : skinServers) { for (SkinServer server : skinServers) {