fix: my_island placeholders fall back to team island for members - #560
Merged
Conversation
Since the getUsersIsland() rewrite that shipped in 1.26.0, the my_island_* placeholders only resolved islands the player owns, so plain team members (who own no island) got the empty defaults (0, 0%, Unknown). Prefer an owned island as before, but fall back to the team island the player is a member of when they own none. Fixes #559 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PtmXKNJ5fSZ9sEumeFDEBc
This was referenced Aug 29, 2026
Closed
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Fixes #559.
Since the
getUsersIsland()rewrite that shipped in 1.26.0 (9ec2530), themy_island_*placeholders only resolved islands the player owns. A plain team member (who owns no island of their own) got the empty defaults —0,0%,Unknown— even though the placeholder docs say they work for the island owner or team member.Fix
getUsersIsland()now uses a preference order instead of a hard owner-only filter:disallow-team-member-islands: false).Testing
testTeamMemberWithoutOwnedIslandcovering the Placeholder Bug #559 scenario.🤖 Generated with Claude Code
https://claude.ai/code/session_01PtmXKNJ5fSZ9sEumeFDEBc