Skip to content

Keep waiting letters out of dead player inventories - #40

Merged
ryanbarlow97 merged 1 commit into
mainfrom
fix/dead-recipient-ddd505c1
Oct 17, 2026
Merged

ryanbarlow97 merged 1 commit into
mainfrom
fix/dead-recipient-ddd505c1

Conversation

@ryanbarlow97

@ryanbarlow97 ryanbarlow97 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

The online mail retry could deliver pending letters while their recipient was on the death screen. An ordinary death can leave the character session active and the inventory empty; respawn can then discard the delivered letter after its saved queue entry has already been removed.

Reject delivery capacity while the recipient is dead. Incoming letters and both pending queues therefore keep waiting, and the normal timer resumes delivery after respawn. This covers ordinary mail, unsent letters, and estate returns without changing persistence or configuration.

Documentation: TF-Minecraft/Docs#294

Validation: all three new regression tests fail on v1.3.1. Java 21 tfmc-mvn -o -B --no-transfer-progress clean verify passes 256 tests and the existing 100% production line-coverage gate. Muse review round 2 found no actionable findings, verifying both the correction and the full inventory-delivery diff.

@github-actions github-actions Bot added the size:XS 0-9 effective changed lines (tests excluded in mixed PRs). label Oct 17, 2026
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d3a85ce-f5f3-4196-a9ae-01b2c5e26fbe
📥 Commits

Reviewing files that changed from the base of the PR and between a12c25e and a4e9a71.

📒 Files selected for processing: 2
  • src/main/java/net/tfminecraft/birdmessenger/mail/MailDelivery.java
  • src/test/java/net/tfminecraft/birdmessenger/mail/MailServiceCoverageTest.java
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ryanbarlow97
ryanbarlow97 merged commit e1b4425 into main Oct 17, 2026
3 checks passed
@ryanbarlow97
ryanbarlow97 deleted the fix/dead-recipient-ddd505c1 branch October 17, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 effective changed lines (tests excluded in mixed PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant