mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08: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
Add a link
Reference in a new issue