Skip to content

fix: my_island placeholders fall back to team island for members - #53

Merged
tastybento merged 1 commit into
developfrom
fix/team-member-placeholders
Aug 29, 2026
Merged

fix: my_island placeholders fall back to team island for members#53
tastybento merged 1 commit into
developfrom
fix/team-member-placeholders

Conversation

@tastybento

Copy link
Copy Markdown
Member

Summary

Ports BentoBoxWorld/AOneBlock#560 (reported as BentoBoxWorld/AOneBlock#559) — ChunkBlock forked the same placeholder code and has the identical bug.

getUsersIsland() only resolved islands the player owns, so a plain team member (who owns no island of their own) got the empty defaults — 0, 0%, Unknown — from every my_island_* placeholder (including the chunk territory placeholders, which use the same helper).

Fix

getUsersIsland() now uses a preference order instead of a hard owner-only filter:

  1. An island the player owns (preserves the fix for players who own an island while also being a member of another team with disallow-team-member-islands: false).
  2. Otherwise, the team island the player is a member of.
  3. Otherwise, empty (existing default values).

Testing

  • New regression test testTeamMemberWithoutOwnedIsland covering the team-member scenario.
  • Full test suite passes (750 tests, 0 failures).

🤖 Generated with Claude Code

https://claude.ai/code/session_01PtmXKNJ5fSZ9sEumeFDEBc

The my_island_* placeholder lookup 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.

Same fix as BentoBoxWorld/AOneBlock#560 (this code was forked from
AOneBlock). See BentoBoxWorld/AOneBlock#559.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PtmXKNJ5fSZ9sEumeFDEBc
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit faff74b into develop Aug 29, 2026
3 checks passed
@tastybento
tastybento deleted the fix/team-member-placeholders branch August 29, 2026 00:54
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.

1 participant