Skip to content

Commit

Permalink
fix a bug that prevented the join event to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasFranke committed Nov 18, 2023
1 parent 8b6c79a commit cbeaf7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/j/stationofdoom/util/ItemBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static ItemStack createHead(String url, String name) {
if (url.isEmpty())
return head;
SkullMeta headMeta = (SkullMeta) head.getItemMeta();
GameProfile profile = new GameProfile(UUID.randomUUID(), null);
GameProfile profile = new GameProfile(UUID.randomUUID(), name);

profile.getProperties().put("textures", new Property("textures", url));

Expand All @@ -108,7 +108,7 @@ public ItemBuilder getHeadBuilder(String url, String name) {
if (url.isEmpty())
return null;
meta = item.getItemMeta();
GameProfile profile = new GameProfile(UUID.randomUUID(), null);
GameProfile profile = new GameProfile(UUID.randomUUID(), name);

profile.getProperties().put("textures", new Property("textures", url));

Expand Down

0 comments on commit cbeaf7d

Please sign in to comment.