Load every mail storage a delivery writes to before changing any

This commit is contained in:
Ruling-0 committed 2026-11-24 15:57:30 -06:00
1 parent 990e8158df
commit 376d83abc1
4 files changed
+35 -2

No files matched your search

@@ -9,7 +9,8 @@ import forestry.core.utils.PosteaCompat;
/// `forestry:<mapName>`.
///
/// `MapStorage` swallows load exceptions and keeps the half-read storage. A storage whose migration failed is never
/// saved. [PostRegistry] rethrows the failure instead of serving the storage.
/// saved. [PostRegistry] rethrows the failure instead of serving the storage. A delivery loads every storage it writes
/// to before changing any of them. A failed storage then stops the whole delivery.
public abstract class MailSavedData extends WorldSavedData {
private RuntimeException loadFailure;