Skip to content

Commit

Permalink
Original head is now set to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro270707 committed Feb 10, 2024
1 parent 41d2cc0 commit 076e7f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public void onInitializeClient() {
textureURL = textureURL.replaceFirst("http://textures.minecraft.net/texture/", "");
String finalTextureURL = textureURL;
HeadedRewritten.CONFIG.allOptions().forEach((key, value) -> {
if (value.defaultValue().equals(finalTextureURL)) ((Option)value).set("-1");
if (value.value().equals(finalTextureURL)) ((Option)value).set(value.defaultValue());
});
HeadOptionArgumentType.getHeadOption(c, "head").set(textureURL);
Expand Down

0 comments on commit 076e7f3

Please sign in to comment.