Skip to content

Fix Issue #186: Orphan Plots#216

Open
Cinnazeyy wants to merge 2 commits into
update/world-generation-reworkfrom
fix/186-restore-slot
Open

Fix Issue #186: Orphan Plots#216
Cinnazeyy wants to merge 2 commits into
update/world-generation-reworkfrom
fix/186-restore-slot

Conversation

@Cinnazeyy
Copy link
Copy Markdown
Member

When using undoreview, it can happen that a builder already filled up all slots again after the review was completed, meaning undoreview cannot set the plot to a slot again, resulting in an orphan plot that is assigned to a builder but not a slot.
This PR changes how the undoreview() method treats this edgecase by simply returning true instead of false.
This will still cause an orphan, but not fail the /undoreview command early and result in the orphans at least being accessible via the player plots menu.

Additionally, this PR also adds a check for whenever a slot is getting freed up, to assign the next orphan instead.

@Cinnazeyy Cinnazeyy linked an issue May 11, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Member

@Zoriot Zoriot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the Codacy issue, other then that LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] - Plot Slot Bugged - We need a Queue

2 participants