Merge pull request #3102 from kevlahnota/newmaster2

allow loading old save
This commit is contained in:
Anthony Calosa
2023-05-13 10:53:22 +08:00
committed by GitHub

View File

@@ -183,6 +183,8 @@ public class SaveFileData extends HashMap<String,byte[]>
} catch (IOException | ClassNotFoundException e) {
e.printStackTrace();
Forge.delayedSwitchBack();
} catch (ClassCastException e) { //this allows loading
System.err.println("Encountered problem loading object: " + key);
}
return null;
}