Skip to content

Commit 895f566

Browse files
committed
Fix Issue #1
Took 4 minutes
1 parent 2c42933 commit 895f566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom-ore-generator/src/main/java/de/derfrzocker/custom/ore/generator/impl/customdata/SkullTextureCustomData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public boolean isValidCustomData(@NotNull final Object customData, @NotNull fina
8686

8787
try {
8888
JsonElement jsonElement = new JsonParser().parse(new String(Base64.getDecoder().decode((String) customData)));
89-
return jsonElement.getAsJsonObject().get("textures").getAsJsonObject().get("SKIN").getAsJsonObject().get("url").getAsString().startsWith("http://textures.minecraft.net/texture/");
89+
return jsonElement.getAsJsonObject().get("textures").getAsJsonObject().get("SKIN").getAsJsonObject().get("url").getAsString().contains("minecraft.net");
9090
} catch (JsonParseException | IllegalStateException | IllegalArgumentException | NullPointerException e) {
9191
return false;
9292
}

0 commit comments

Comments
 (0)