Skip to content

Commit

Permalink
Fix wrongly display message for required money in edit challenge gui (#…
Browse files Browse the repository at this point in the history
…119)

It showed required level instead of required money in element description.
  • Loading branch information
BONNe committed May 14, 2019
1 parent 34ed09e commit 9f8bf03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ else if (this.challenge.getChallengeType().equals(Challenge.ChallengeType.OTHER)
{
name = this.user.getTranslation("challenges.gui.buttons.admin.required-blocks");

description = new ArrayList<>(this.challenge.getRequiredEntities().size() + 1);
description = new ArrayList<>(this.challenge.getRequiredBlocks().size() + 1);
description.add(this.user.getTranslation("challenges.gui.descriptions.admin.required-blocks"));

for (Map.Entry<Material, Integer> entry : this.challenge.getRequiredBlocks().entrySet())
Expand Down Expand Up @@ -713,7 +713,7 @@ else if (this.challenge.getChallengeType().equals(Challenge.ChallengeType.OTHER)
{
name = this.user.getTranslation("challenges.gui.buttons.admin.required-items");

description = new ArrayList<>(this.challenge.getRequiredEntities().size() + 1);
description = new ArrayList<>(this.challenge.getRequiredItems().size() + 1);
description.add(this.user.getTranslation("challenges.gui.descriptions.admin.required-items"));

for (ItemStack itemStack : this.challenge.getRequiredItems())
Expand Down Expand Up @@ -847,7 +847,7 @@ else if (this.challenge.getChallengeType().equals(Challenge.ChallengeType.OTHER)
description = new ArrayList<>(2);
description.add(this.user.getTranslation("challenges.gui.descriptions.admin.required-money"));
description.add(this.user.getTranslation("challenges.gui.descriptions.current-value",
"[value]", Long.toString(this.challenge.getRequiredIslandLevel())));
"[value]", Long.toString(this.challenge.getRequiredMoney())));

icon = new ItemStack(this.addon.isEconomyProvided() ? Material.GOLD_INGOT : Material.BARRIER);
clickHandler = (panel, user, clickType, slot) -> {
Expand Down

0 comments on commit 9f8bf03

Please sign in to comment.