- Temporarily wrapping faulty logic with a try/catch so Quest Mode decks can actually save

This commit is contained in:
Sol
2015-10-08 13:40:29 +00:00
parent e7fe36f402
commit d5dc1a9e2a

View File

@@ -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
currentFolder.add((T) model.copyTo(model.getName()));
try {
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;
setSaved(true);