Skip to content

Commit

Permalink
fix: niche edge case where the type is null for skull
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjack committed Jul 16, 2024
1 parent 9e4e6ce commit 83c20a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/me/glaremasters/guilds/guild/GuildSkull.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public ItemStack createSkull() {
final ProfileInputType type = ProfileInputType.typeOf(serialized);

if (type == null) {
return XSkull.createItem().apply();
final ProfileInputType backupType = ProfileInputType.typeOf("c10591e6909e6a281b371836e462d67a2c78fa0952e910f32b41a26c48c1757c");
final Profileable backupProfile = Profileable.of(backupType, serialized);

return XSkull.createItem().profile(backupProfile).apply();
}

final Profileable playerProfile = Profileable.of(type, serialized);
Expand Down

0 comments on commit 83c20a1

Please sign in to comment.