Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlockLineIterator causes an IllegalStateException when looping blocks in a line #7496

Open
1 task done
nanodn opened this issue Jan 21, 2025 · 0 comments
Open
1 task done
Assignees
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. PR available Issues which have a yet-to-be merged PR resolving it priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

Comments

@nanodn
Copy link

nanodn commented Jan 21, 2025

Skript/Server Version

[12:46:35 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[12:46:35 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[12:46:35 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[12:46:35 INFO]: [Skript] Server Version: 1.21.4-118-73f7736 (MC: 1.21.4)
[12:46:35 INFO]: [Skript] Skript Version: 2.10.0 (skriptlang-github)
[12:46:35 INFO]: [Skript] Installed Skript Addons:
[12:46:35 INFO]: [Skript]  - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[12:46:35 INFO]: [Skript] Installed dependencies: None

Bug Description

Similar to #6437, looping through blocks in a line causes an IllegalStateException to be thrown by the BlockLineIterator.

Expected Behavior

There should be no exceptions.

Steps to Reproduce

Run the command below as a player:

command issue:
    executable by: players
    trigger:
        set {_p1} to location(0, 100, 0, player's world)
        set {_p2} to location(10, 100, 10, player's world)
        set {_origin} to location(5, 100, 5, player's world)
        loop blocks within {_p1} and {_p2}:
            set {_loc} to location of loop-value-1
            loop blocks from {_origin} to {_loc}:
                broadcast loop-value-2

Errors or Screenshots

https://pastes.dev/MGZl6d8ZyF

Other

I'm not sure if this is the same as #6437 as it was supposed to be fixed by #7062.

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@Efnilite Efnilite added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). labels Jan 21, 2025
@Pesekjak Pesekjak self-assigned this Jan 23, 2025
@Pesekjak Pesekjak added the PR available Issues which have a yet-to-be merged PR resolving it label Jan 23, 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. PR available Issues which have a yet-to-be merged PR resolving it priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Projects
None yet
Development

No branches or pull requests

3 participants