Skip to content

Commit

Permalink
Make item count in challenge inventory show completion times
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Feb 11, 2021
1 parent 49a8dbb commit 02181e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public ItemStack createChallengeItem(Challenge challenge, int challengeCount) {
lore.add("");
lore.add(completed.replace("%amount%", ChatColor.GREEN + Integer.toString(challengeCount)));
}
ItemStack c = new ItemStack(challenge.getShownItem(), 1);
ItemStack c = new ItemStack(challenge.getShownItem(), Math.min(Math.max(1, challengeCount), 64));
ItemMeta challengemeta = c.getItemMeta();

challengemeta.setDisplayName(challengeName);
Expand Down

0 comments on commit 02181e7

Please sign in to comment.