mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 05:25:21 +01:00
Fix unstackable reward item displaying (#135)
This commit is contained in:
parent
a7f9e01d61
commit
68a26e4d28
@ -545,7 +545,7 @@ public abstract class CommonGUI
|
||||
{
|
||||
result.add(this.user.getTranslation("challenges.gui.challenge-description.reward-items"));
|
||||
|
||||
for (ItemStack itemStack : rewardItems)
|
||||
Utils.groupEqualItems(rewardItems).forEach(itemStack ->
|
||||
{
|
||||
result.add(this.user.getTranslation("challenges.gui.descriptions.item",
|
||||
"[item]", itemStack.getType().name(),
|
||||
@ -562,7 +562,7 @@ public abstract class CommonGUI
|
||||
result.add(this.user.getTranslation("challenges.gui.descriptions.item-enchant",
|
||||
"[enchant]", entry.getKey().getKey().getKey(), "[level]", Integer.toString(entry.getValue())));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add message about reward commands
|
||||
@ -778,7 +778,7 @@ public abstract class CommonGUI
|
||||
{
|
||||
result.add(this.user.getTranslation("challenges.gui.level-description.reward-items"));
|
||||
|
||||
for (ItemStack itemStack : level.getRewardItems())
|
||||
Utils.groupEqualItems(level.getRewardItems()).forEach(itemStack ->
|
||||
{
|
||||
result.add(this.user.getTranslation("challenges.gui.descriptions.item",
|
||||
"[item]", itemStack.getType().name(),
|
||||
@ -795,7 +795,7 @@ public abstract class CommonGUI
|
||||
result.add(this.user.getTranslation("challenges.gui.descriptions.item-enchant",
|
||||
"[enchant]", entry.getKey().getKey().getKey(), "[level]", Integer.toString(entry.getValue())));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add message about reward commands
|
||||
|
Loading…
Reference in New Issue
Block a user