forked from External/mage
* Imporoved release of draft object during draft tournament.
This commit is contained in:
parent
4e56e584b6
commit
adbd1bca94
4 changed files with 19 additions and 3 deletions
|
|
@ -198,6 +198,7 @@ public class DraftController {
|
|||
draftSession.removeDraft();
|
||||
}
|
||||
TableManager.getInstance().endDraft(tableId, draft);
|
||||
DraftManager.getInstance().removeDraft(draft.getId());
|
||||
}
|
||||
|
||||
public void kill(UUID userId) {
|
||||
|
|
@ -259,5 +260,10 @@ public class DraftController {
|
|||
|
||||
public void abortDraft() {
|
||||
draft.setAbort(true);
|
||||
try {
|
||||
endDraft();
|
||||
} catch(MageException ex) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue