mirror of
https://github.com/correl/mage.git
synced 2025-04-11 17:00:08 -09:00
Dungeons: fixed rollback error on disconnects while choosing dungeon;
This commit is contained in:
parent
5e50dc7393
commit
a129aaf4ee
1 changed files with 6 additions and 1 deletions
|
@ -148,7 +148,12 @@ public class Dungeon implements CommandObject {
|
|||
choice.setMessage("Choose a dungeon to venture into");
|
||||
choice.setChoices(dungeonNames);
|
||||
player.choose(Outcome.Neutral, choice, game);
|
||||
return createDungeon(choice.getChoice());
|
||||
if (choice.getChoice() != null) {
|
||||
return createDungeon(choice.getChoice());
|
||||
} else {
|
||||
// on disconnect
|
||||
return createDungeon("Tomb of Annihilation");
|
||||
}
|
||||
}
|
||||
|
||||
public static Dungeon createDungeon(String name) {
|
||||
|
|
Loading…
Add table
Reference in a new issue