Document why a delivery loads its mail storages first

This commit is contained in:
Ruling-0 committed 2026-11-24 16:00:21 -06:00
1 parent 277f97d86b
commit 5eaa087b2d
1 file changed
+2
@@ -182,6 +182,8 @@ public class PostOffice extends WorldSavedData implements IPostOffice {
return EnumDeliveryState.OK;
}
/// Loads every storage a delivery of `letter` writes to, so a storage whose migration failed throws before the
/// delivery changes anything.
private static void loadDeliveryTargets(World world, ILetter letter, boolean doLodge) {
for (IMailAddress recipient : letter.getRecipients()) {
if (PostRegistry.loadMailStorage(world, recipient) instanceof TradeStation trade) {