diff --git a/src/main/java/uk/betacraft/legacyfix/util/SkinUtils.java b/src/main/java/uk/betacraft/legacyfix/util/SkinUtils.java index 9fcabf6..8270483 100644 --- a/src/main/java/uk/betacraft/legacyfix/util/SkinUtils.java +++ b/src/main/java/uk/betacraft/legacyfix/util/SkinUtils.java @@ -88,8 +88,8 @@ public static SkinData fetchSkin(String uuid) { byte[] cape; byte[] skin = RequestUtil.readInputStream(skinUrl.openStream()); - JSONObject capeObj = textures.getJSONObject("CAPE"); - if (capeObj != null) { + if (textures.has("CAPE")) { + JSONObject capeObj = textures.getJSONObject("CAPE"); URL capeUrl = new URL(capeObj.getString("url")); cape = RequestUtil.readInputStream(capeUrl.openStream());