Skip to content

Commit

Permalink
call .apply() on texturedhead method
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranhart committed Jun 14, 2024
1 parent 13f0f2e commit 670145f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
<version>1.20.3-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.mojang</groupId>-->
<!-- <artifactId>authlib</artifactId>-->
<!-- <version>1.5.21</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/ca/tweetzy/flight/utils/QuickItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ public static ItemStack createTexturedHead(String url) {
SkullMeta sm = (SkullMeta) item.getItemMeta();
assert sm != null;

XSkull.of(sm).profile(XSkull.SkullInputType.TEXTURE_URL, url);
// XSkull.applySkin(sm, encodeURL(url));
XSkull.of(sm).profile(XSkull.SkullInputType.TEXTURE_URL, url).apply();
item.setItemMeta(sm);

return item;
Expand Down

0 comments on commit 670145f

Please sign in to comment.