diff --git a/src/main/java/me/rayzr522/decoheads/data/Head.java b/src/main/java/me/rayzr522/decoheads/data/Head.java index 663aea7..c310751 100644 --- a/src/main/java/me/rayzr522/decoheads/data/Head.java +++ b/src/main/java/me/rayzr522/decoheads/data/Head.java @@ -141,6 +141,6 @@ public String toString() { } public ItemStack getItem() { - return CustomHead.getHead(texture, uuid, name); + return CustomHead.getHead(texture, uuid); } } diff --git a/src/main/java/me/rayzr522/decoheads/util/CustomHead.java b/src/main/java/me/rayzr522/decoheads/util/CustomHead.java index 46498d9..2f6e598 100644 --- a/src/main/java/me/rayzr522/decoheads/util/CustomHead.java +++ b/src/main/java/me/rayzr522/decoheads/util/CustomHead.java @@ -44,17 +44,16 @@ public class CustomHead { } } - public static ItemStack getHead(String texture, String id, String name) { + public static ItemStack getHead(String texture, String id) { Objects.requireNonNull(texture); Objects.requireNonNull(id); - Objects.requireNonNull(name); ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); ItemMeta meta = item.getItemMeta(); try { - Object profile = GAME_PROFILE_CONSTRUCTOR.newInstance(UUID.fromString(id), name); + Object profile = GAME_PROFILE_CONSTRUCTOR.newInstance(UUID.fromString(id), null); Object properties = GET_PROPERTIES.invoke(profile); INSERT_PROPERTY.invoke(properties, "textures", PROPERTY_CONSTRUCTOR.newInstance("textures", texture));