mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 22:34:33 +00:00
Document why a delivery loads its mail storages first
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user