Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sovdeeth
Copy link
Member

Problem

Accidental breaking changes were caused due to changes to ExprLoopValue where existing typed loop value expressions (loop-player) suddenly started matching other parent loops like loop {var::*} due to a change to use canReturn which always returns true if the return class is Object.

Solution

Reverts the change that added canReturn. This isn't a perfect solution but in the interest of 2.12.1 and fixing breaking changes, it's the most expedient. Also cleans up some poorly named variables.

Testing Completed

added regression test.

Supporting Information


Completes: none
Related: none

@sovdeeth sovdeeth requested a review from a team as a code owner July 28, 2025 05:31
@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jul 28, 2025
@sovdeeth sovdeeth requested review from cheeezburga and erenkarakal and removed request for a team July 28, 2025 05:31
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jul 28, 2025
@sovdeeth sovdeeth moved this to In Review in 2.12 Releases Jul 28, 2025
@APickledWalrus APickledWalrus self-requested a review July 28, 2025 06:14
@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 Jul 28, 2025
@sovdeeth sovdeeth moved this from In Review to Awaiting Merge in 2.12 Releases Aug 1, 2025
@APickledWalrus APickledWalrus merged commit eed9e4f into SkriptLang:dev/patch Aug 1, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.12 Releases Aug 1, 2025
@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 Aug 1, 2025
@sovdeeth sovdeeth moved this from Done - Awaiting Release to Done - Released in 2.12 Releases Aug 1, 2025
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.

4 participants