Skip to content

Release 1.0.5#12

Merged
tastybento merged 3 commits into
masterfrom
develop
May 19, 2026
Merged

Release 1.0.5#12
tastybento merged 3 commits into
masterfrom
develop

Conversation

@tastybento
Copy link
Copy Markdown
Member

No description provided.

tastybento and others added 3 commits May 19, 2026 07:32
onTeamKick and onTeamLeave had inverted boolean logic: they called
resize() whenever the kicked/leaving island was NOT in StrangerRealms'
own world, so any /<gamemode> team kick or leave on the server would
fire resize() on the wrong addon's island. resize() then called
Island.setRange() with StrangerRealms' configured distance (typically
64 with defaults: 32 + 32*(members-1)), overwriting the range field of
e.g. AOneBlock, BSkyBlock, Boxed islands. On the next server restart
IslandsManager.load() refused to load those islands because range no
longer matched the configured distance-between-islands and BentoBox
panic-disabled with "Island distance mismatch".

Invert the conditions to early-return when the island isn't in
StrangerRealms' world (matching the pattern already used in
onTeamJoin) and add a defensive guard at the top of resize() so any
future listener bug can't reintroduce the same corruption.

Includes a TeamListenerTest regression suite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ther-gamemode-islands

Fix TeamListener corrupting range on other game modes' islands
@sonarqubecloud
Copy link
Copy Markdown

@tastybento tastybento merged commit 56329b2 into master May 19, 2026
5 checks passed
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