From d64cd057047989ab936bc58f0e601f9ad3562d33 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sat, 13 May 2023 10:50:57 +0800 Subject: [PATCH] allow loading old save --- forge-gui-mobile/src/forge/adventure/util/SaveFileData.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forge-gui-mobile/src/forge/adventure/util/SaveFileData.java b/forge-gui-mobile/src/forge/adventure/util/SaveFileData.java index bfb39b1dc67..1c6d1dc5185 100644 --- a/forge-gui-mobile/src/forge/adventure/util/SaveFileData.java +++ b/forge-gui-mobile/src/forge/adventure/util/SaveFileData.java @@ -183,6 +183,8 @@ public class SaveFileData extends HashMap } catch (IOException | ClassNotFoundException e) { e.printStackTrace(); Forge.delayedSwitchBack(); + } catch (ClassCastException e) { //this allows loading + System.err.println("Encountered problem loading object: " + key); } return null; }