fix announcing derelict source deletions on other player teams - #566
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesSource-team alert handling
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary by CodeRabbit
Note
Fix derelict source block destruction alerts sending to wrong player team
When a source block is destroyed, the alert was sent to the block's current team, which could be wrong if the block had changed teams (e.g. derelict blocks). The fix captures the block's team at
TilePreChangeEventtime in apreChangeTeamsmap, then uses that stored team when sending the destruction announcement. The map is cleared each update tick to avoid stale entries.Macroscope summarized bd10484.