allow loading old save

This commit is contained in:
Anthony Calosa
2023-05-13 10:50:57 +08:00
parent f3f6dbce94
commit d64cd05704

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;
}