mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Do not display the current world in the Travel destination dialog.
CheckStyle.
This commit is contained in:
@@ -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?";
|
||||||
|
|||||||
Reference in New Issue
Block a user