mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 12:57:52 +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"));
|
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",
|
result.add(this.user.getTranslation("challenges.gui.descriptions.item",
|
||||||
"[item]", itemStack.getType().name(),
|
"[item]", itemStack.getType().name(),
|
||||||
@ -562,7 +562,7 @@ public abstract class CommonGUI
|
|||||||
result.add(this.user.getTranslation("challenges.gui.descriptions.item-enchant",
|
result.add(this.user.getTranslation("challenges.gui.descriptions.item-enchant",
|
||||||
"[enchant]", entry.getKey().getKey().getKey(), "[level]", Integer.toString(entry.getValue())));
|
"[enchant]", entry.getKey().getKey().getKey(), "[level]", Integer.toString(entry.getValue())));
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add message about reward commands
|
// Add message about reward commands
|
||||||
@ -778,7 +778,7 @@ public abstract class CommonGUI
|
|||||||
{
|
{
|
||||||
result.add(this.user.getTranslation("challenges.gui.level-description.reward-items"));
|
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",
|
result.add(this.user.getTranslation("challenges.gui.descriptions.item",
|
||||||
"[item]", itemStack.getType().name(),
|
"[item]", itemStack.getType().name(),
|
||||||
@ -795,7 +795,7 @@ public abstract class CommonGUI
|
|||||||
result.add(this.user.getTranslation("challenges.gui.descriptions.item-enchant",
|
result.add(this.user.getTranslation("challenges.gui.descriptions.item-enchant",
|
||||||
"[enchant]", entry.getKey().getKey().getKey(), "[level]", Integer.toString(entry.getValue())));
|
"[enchant]", entry.getKey().getKey().getKey(), "[level]", Integer.toString(entry.getValue())));
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add message about reward commands
|
// Add message about reward commands
|
||||||
|
Loading…
Reference in New Issue
Block a user