mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +01:00
Use toString() rather than cast potential Boolean, fixes #672
This commit is contained in:
parent
f2d50198e1
commit
a265f2b270
@ -570,7 +570,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
|
||||
for (String dataKey : datamapKeys) {
|
||||
text += ChatColor.BOLD + "" + ChatColor.DARK_BLUE + index + " - " + ChatColor.RESET + ChatColor.BLUE + dataKey;
|
||||
if (datamap.get(dataKey) != null) {
|
||||
text += ChatColor.GREEN + " (" + (String) datamap.get(dataKey) + ")\n";
|
||||
text += ChatColor.GREEN + " (" + datamap.get(dataKey).toString() + ")\n";
|
||||
} else {
|
||||
text += ChatColor.RED + " (" + Lang.get("valRequired") + ")\n";
|
||||
}
|
||||
|
@ -849,7 +849,7 @@ public class RewardsPrompt extends FixedSetPrompt {
|
||||
for (String dataKey : datamapKeys) {
|
||||
text += ChatColor.BOLD + "" + ChatColor.DARK_BLUE + index + " - " + ChatColor.RESET + ChatColor.BLUE + dataKey;
|
||||
if (datamap.get(dataKey) != null) {
|
||||
text += ChatColor.GREEN + " (" + (String) datamap.get(dataKey) + ")\n";
|
||||
text += ChatColor.GREEN + " (" + datamap.get(dataKey).toString() + ")\n";
|
||||
} else {
|
||||
text += ChatColor.RED + " (" + Lang.get("valRequired") + ")\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user