mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Temporarily wrapping faulty logic with a try/catch so Quest Mode decks can actually save
This commit is contained in:
@@ -193,7 +193,13 @@ public class DeckController<T extends DeckBase> {
|
|||||||
|
|
||||||
// copy to new instance before adding to current folder so further changes are auto-saved
|
// copy to new instance before adding to current folder so further changes are auto-saved
|
||||||
currentFolder.add((T) model.copyTo(model.getName()));
|
currentFolder.add((T) model.copyTo(model.getName()));
|
||||||
|
try {
|
||||||
model.setDirectory(currentFolder.getFullPath().substring(ForgeConstants.DECK_BASE_DIR.length()));
|
model.setDirectory(currentFolder.getFullPath().substring(ForgeConstants.DECK_BASE_DIR.length()));
|
||||||
|
} catch (Exception exception) {
|
||||||
|
// Set directory failed?
|
||||||
|
// TEMPORARILY Adding to fix quest mode saving
|
||||||
|
|
||||||
|
}
|
||||||
modelInStorage = true;
|
modelInStorage = true;
|
||||||
setSaved(true);
|
setSaved(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user