Correct display of custom objectives list when editing stages

This commit is contained in:
PikaMug 2020-01-23 19:17:57 -05:00
parent f5e8eb7f7d
commit 26a822d0d3

View File

@ -290,8 +290,6 @@ public class StageMainPrompt extends NumericPrompt {
String text = "\n";
LinkedList<String> customObjs
= (LinkedList<String>) context.getSessionData(pref + CK.S_CUSTOM_OBJECTIVES);
text += ChatColor.BLUE + "" + ChatColor.BOLD + "8" + ChatColor.RESET + ChatColor.DARK_PURPLE + " - "
+ Lang.get("stageEditorCustom") + "\n";
for (String s : customObjs) {
text += ChatColor.LIGHT_PURPLE + " - " + ChatColor.GOLD + s + "\n";
}
@ -496,7 +494,7 @@ public class StageMainPrompt extends NumericPrompt {
if (context.getSessionData(pref + CK.S_PASSWORD_PHRASES) != null) {
hasObjective = true;
}
if (context.getSessionData(pref + CK.S_CUSTOM_OBJECTIVES) == null) {
if (context.getSessionData(pref + CK.S_CUSTOM_OBJECTIVES) != null) {
hasObjective = true;
}
}