Skip to content

Commit

Permalink
Update ItemContent.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Karashok-Leo committed Aug 4, 2024
1 parent c7497d9 commit 84e5b79
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public ItemContent(ItemStack stack, Icon icon)
this.stack = stack;
}

public ItemContent(ItemStack stack)
{
this(stack, new Icon(stack.getItem()));
}

public ItemStack getStack()
{
return stack;
Expand Down

0 comments on commit 84e5b79

Please sign in to comment.