Do not display the current world in the Travel destination dialog.

CheckStyle.
This commit is contained in:
RumbleBBU
2012-12-21 07:20:16 +00:00
parent 7bba9a3d09
commit 116fc0e53d

View File

@@ -271,11 +271,13 @@ public class SSubmenuQuestUtil {
final QuestController qCtrl = Singletons.getModel().getQuest(); final QuestController qCtrl = Singletons.getModel().getQuest();
for (QuestWorld qw : Singletons.getModel().getWorlds()) { for (QuestWorld qw : Singletons.getModel().getWorlds()) {
if (qCtrl.getWorld() != qw) {
worlds.add(qw); worlds.add(qw);
} }
}
if (worlds.size() < 1) { if (worlds.size() < 1) {
JOptionPane.showMessageDialog(null, "There are currently no worlds\nin this version of Forge.", "No worlds", JOptionPane.ERROR_MESSAGE); JOptionPane.showMessageDialog(null, "There are currently no worlds you can travel to\nin this version of Forge.", "No worlds", JOptionPane.ERROR_MESSAGE);
} }
final String setPrompt = "Where do you wish to travel?"; final String setPrompt = "Where do you wish to travel?";