Allow overriding the head item name

This commit is contained in:
zontreck 2024-01-02 19:45:31 -07:00
parent b9150379dc
commit 8f550510a6
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ public class CreditsEntry {
*/ */
public ItemStack compile() public ItemStack compile()
{ {
ItemStack stack = player.getAsItem(); ItemStack stack = player.getAsItem("");
stack.setHoverName(Component.literal(name)); stack.setHoverName(Component.literal(name));
LoreContainer contain = new LoreContainer(stack); LoreContainer contain = new LoreContainer(stack);
contain.clear(); contain.clear();

View file

@ -180,9 +180,9 @@ public class HeadCache
*/ */
public void resetCache() public void resetCache()
{ {
HeadUtilities.get("zontreck"); HeadUtilities.get("zontreck", "");
HeadUtilities.get("PossumTheWarrior"); HeadUtilities.get("PossumTheWarrior", "");
HeadUtilities.get("GemMD"); HeadUtilities.get("GemMD", "");
} }
public List<ItemStack> compiled = new ArrayList<>(); public List<ItemStack> compiled = new ArrayList<>();