Skip to content

Fail gracefully if the regiondata for a world is not loaded/disabled.#8403

Merged
sovdeeth merged 2 commits intoSkriptLang:dev/patchfrom
sovdeeth:patch/regions-unloaded-fail-gracefully
Jan 29, 2026
Merged

Fail gracefully if the regiondata for a world is not loaded/disabled.#8403
sovdeeth merged 2 commits intoSkriptLang:dev/patchfrom
sovdeeth:patch/regions-unloaded-fail-gracefully

Conversation

@sovdeeth
Copy link
Copy Markdown
Member

Problem

Trying to get a region in a world without a region manager throws an exception and breaks parsing.

Solution

Return null if the region manager does not exist, plus a slightly more helpful error message.

Testing Completed

Supporting Information


Completes: #8309
Related: none
AI assistance: none

@sovdeeth sovdeeth requested a review from a team as a code owner January 25, 2026 02:32
@sovdeeth sovdeeth requested review from Burbulinis and TheMug06 and removed request for a team January 25, 2026 02:32
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jan 25, 2026
@sovdeeth sovdeeth linked an issue Jan 25, 2026 that may be closed by this pull request
1 task
@sovdeeth sovdeeth moved this to In Review in 2.14 Releases Jan 25, 2026
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.14 Releases Jan 26, 2026
@skriptlang-automation skriptlang-automation bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Jan 26, 2026
@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jan 29, 2026
@sovdeeth sovdeeth merged commit 178e233 into SkriptLang:dev/patch Jan 29, 2026
9 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.14 Releases Jan 29, 2026
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. labels Jan 29, 2026
@sovdeeth sovdeeth moved this from Done - Awaiting Release to Done - Released in 2.14 Releases Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update.

Projects

Status: Done - Released

Development

Successfully merging this pull request may close these issues.

Teleport on region doesent work

4 participants