diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java index 0768b1a1..99386343 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java @@ -206,6 +206,9 @@ public final class HDSkinManager implements IResourceManagerReloadListener { for (SkinServer server : skinServers) { server.getProfileTextures(profile).forEach(textures::putIfAbsent); + if (textures.size() == Type.values().length) { + return textures; + } } return textures; diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/skins/AbstractSkinServer.java b/src/hdskins/java/com/voxelmodpack/hdskins/skins/AbstractSkinServer.java index 664bd085..64caa121 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/skins/AbstractSkinServer.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/skins/AbstractSkinServer.java @@ -5,6 +5,7 @@ import java.util.Collections; import java.util.Map; import java.util.concurrent.CompletableFuture; +import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.util.Strings; import com.google.gson.JsonParseException; @@ -35,8 +36,8 @@ public abstract class AbstractSkinServer implements SkinServer { if (payload != null && payload.getTextures() != null) { return payload.getTextures(); } - } catch (IOException ignored) { - + } catch (IOException e) { + LogManager.getLogger().trace(e); } return Collections.emptyMap();