Skip to content

Fix loop behaviour from super call.#7537

Merged
Moderocky merged 3 commits into
SkriptLang:dev/patchfrom
Moderocky:fix-for-each
Jan 26, 2025
Merged

Fix loop behaviour from super call.#7537
Moderocky merged 3 commits into
SkriptLang:dev/patchfrom
Moderocky:fix-for-each

Conversation

@Moderocky
Copy link
Copy Markdown
Member

Description

Fixes an issue with subclasses of loop which couldn't call LoopSection's setNext because it was obscured by the overriding method.
This was causing triggers to terminate early (though I'm actually not sure why, it seems a bit dodgy, but this was definitely the cause). As a result, it was reporting as correct in the test system because the tests only measure for failures (and the assertions were just never being reached).

I also fixed a couple of other minor problems that had been hidden by this, since their tests were getting skipped.

Fixes #7536

@Moderocky Moderocky added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.11 labels Jan 26, 2025
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broadcasts can be removed

Comment thread src/test/skript/tests/syntaxes/expressions/ExprQueue.sk Outdated
@Moderocky Moderocky merged commit 5c2ce78 into SkriptLang:dev/patch Jan 26, 2025
@Moderocky Moderocky deleted the fix-for-each branch January 26, 2025 21:22
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
* Fix loop behaviour from super call.

* Update src/test/skript/tests/syntaxes/expressions/ExprQueue.sk
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants