Fix an issue when edit menu did not display item amount.

This commit is contained in:
BONNe 2022-01-04 21:47:20 +02:00
parent 88215b6f0c
commit 23778ffca2
3 changed files with 8 additions and 4 deletions

View File

@ -907,6 +907,7 @@ public class EditChallengePanel extends CommonPanel
sorted(Comparator.comparing(ItemStack::getType)). sorted(Comparator.comparing(ItemStack::getType)).
forEach(itemStack -> forEach(itemStack ->
description.add(this.user.getTranslationOrNothing(reference + "list", description.add(this.user.getTranslationOrNothing(reference + "list",
"[number]", String.valueOf(itemStack.getAmount()),
"[item]", Utils.prettifyObject(itemStack, this.user)))); "[item]", Utils.prettifyObject(itemStack, this.user))));
} }
@ -1463,6 +1464,7 @@ public class EditChallengePanel extends CommonPanel
sorted(Comparator.comparing(ItemStack::getType)). sorted(Comparator.comparing(ItemStack::getType)).
forEach(itemStack -> forEach(itemStack ->
description.add(this.user.getTranslationOrNothing(reference + "list", description.add(this.user.getTranslationOrNothing(reference + "list",
"[number]", String.valueOf(itemStack.getAmount()),
"[item]", Utils.prettifyObject(itemStack, this.user)))); "[item]", Utils.prettifyObject(itemStack, this.user))));
} }
@ -1715,6 +1717,7 @@ public class EditChallengePanel extends CommonPanel
sorted(Comparator.comparing(ItemStack::getType)). sorted(Comparator.comparing(ItemStack::getType)).
forEach(itemStack -> forEach(itemStack ->
description.add(this.user.getTranslationOrNothing(reference + "list", description.add(this.user.getTranslationOrNothing(reference + "list",
"[number]", String.valueOf(itemStack.getAmount()),
"[item]", Utils.prettifyObject(itemStack, this.user)))); "[item]", Utils.prettifyObject(itemStack, this.user))));
} }

View File

@ -403,6 +403,7 @@ public class EditLevelPanel extends CommonPagedPanel<Challenge>
sorted(Comparator.comparing(ItemStack::getType)). sorted(Comparator.comparing(ItemStack::getType)).
forEach(itemStack -> forEach(itemStack ->
description.add(this.user.getTranslationOrNothing(reference + "list", description.add(this.user.getTranslationOrNothing(reference + "list",
"[number]", String.valueOf(itemStack.getAmount()),
"[item]", Utils.prettifyObject(itemStack, this.user)))); "[item]", Utils.prettifyObject(itemStack, this.user))));
} }

View File

@ -328,7 +328,7 @@ challenges:
&7 items for this &7 items for this
&7 challenge to be completable. &7 challenge to be completable.
title: "&7 Items: " title: "&7 Items: "
list: " &8 - [item]" list: " &8 - [number] x [item]"
none: "&7 Items are not added." none: "&7 Items are not added."
add_ignored_meta: add_ignored_meta:
name: "&f&l Add Ignore Metadata" name: "&f&l Add Ignore Metadata"
@ -338,7 +338,7 @@ challenges:
&7 any meta-data that &7 any meta-data that
&7 is assigned to them. &7 is assigned to them.
title: "&7 Items: " title: "&7 Items: "
list: " &8 - [item]" list: " &8 - [number] x [item]"
none: "&7 Items are not added." none: "&7 Items are not added."
remove_ignored_meta: remove_ignored_meta:
name: "&f&l Remove Ignore Metadata" name: "&f&l Remove Ignore Metadata"
@ -449,7 +449,7 @@ challenges:
&7 Allows to change reward &7 Allows to change reward
&7 items. &7 items.
title: "&7 Items: " title: "&7 Items: "
list: " &8 - [item]" list: " &8 - [number] x [item]"
none: "&7 Items are not added." none: "&7 Items are not added."
repeat_reward_items: repeat_reward_items:
name: "&f&l Repeat Reward Items" name: "&f&l Repeat Reward Items"
@ -458,7 +458,7 @@ challenges:
&7 reward items for this &7 reward items for this
&7 challenge. &7 challenge.
title: "&7 Items: " title: "&7 Items: "
list: " &8 - [item]" list: " &8 - [number] x [item]"
none: "&7 Items are not added." none: "&7 Items are not added."
reward_experience: reward_experience:
name: "&f&l Reward Experience" name: "&f&l Reward Experience"