Repository navigation
fix: stop a broken station's site choice from starting a build - #34
Conversation
Breaking an idle station while choosing a building site left the placement active. The next left click then took the materials and started the build on the removed station: it never ticked, never refunded, and left a "Constructing" text floating where it stood. - Removing a station drops the site choices made for it. - The build-site click and the blueprint menu check that the station is still registered. - Left-clicking the station itself now cancels the site choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed removal save Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou'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 36 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
@coderabbitai review |
Action performed
|
ItemsAdder runs the mining of its custom-block stations, so a survival player's left click on the station never fires PlayerInteractEvent. The prompt promised a cancel that only worked in creative. Breaking the station still cancels the choice with a message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai review |
Action not completed
|
|
CodeRabbit was rate limited on 19adfee, so this was reviewed independently (Fable 5.2, CodeRabbit-style): VERDICT: APPROVE, no critical or major findings. Minor follow-up: in |
What went wrong
A player on Main picked a Windrider at an engineering table, then broke the table to cancel. Afterwards a "Constructing Windrider" text floated where the table had stood, no Windrider came, and the 16 oak logs, 16 white wool and 8 iron ingots were gone.
Breaking an idle station removed it, but the player's 30-second site choice stayed active. The next left click took the materials and started the build on the removed station. Only registered stations tick, so the build never progressed, nothing was refunded, and its timer text stayed until the chunk unloaded.
Changes
An earlier commit also made "left-click the station to cancel" a feature. The Dev test showed that survival clicks on an ItemsAdder custom-block station never reach
PlayerInteractEvent, because ItemsAdder runs the mining. That cancel only worked in creative, so 19adfee removes it and the prompt is back to its old wording.Testing
ManagerTestcases. A reviewer applied the first ones to the oldStationManager, and they fail there. All 66 tests pass.LifecycleTestis skipped locally because it sets POSIX permissions, which Windows refuses; CI runs it.StationManagerstays at 100% coverage.VERDICT: APPROVE. Round 3 reviewed the removal.~/vfb-orphan-test/test.js, two real-character bots, Windrider at an engineering table):Follow-ups (existing behaviour, not changed here)
onBlockBreakruns at NORMAL priority. A plugin that cancels the break later still gets the station unregistered.🤖 Generated with Claude Code