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

Repeat elements are skipped. #7162

Open
1 task done
Asleeepp opened this issue Oct 24, 2024 · 0 comments
Open
1 task done

Repeat elements are skipped. #7162

Asleeepp opened this issue Oct 24, 2024 · 0 comments
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

Comments

@Asleeepp
Copy link
Contributor

Asleeepp commented Oct 24, 2024

Skript/Server Version

[Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[Skript] Server Version: 1.21.1-99-1bc02e6 (MC: 1.21.1)
[Skript] Skript Version: 2.9.3 (skriptlang-github)
[Skript] Installed Skript Addons: None
[Skript] Installed dependencies: None

Bug Description

When using the Elements expressions, if you have a list variable with repeated elements, removing the first [] elements, does not remove all of the elements from the list.

Note: This bug works with all forms of removing a list of elements, (removing first and last elements and removing elements between [] and []), i'm just using first elements in this issue report.

Expected Behavior

I assume that this isn't expected/intended behaviour, and that all [] elements should be removed from the list variable regardless of whether there is a repeated element or not.

Steps to Reproduce

1, do something like set {woah::*} to 1,1,2,3,4,5,6,6
2, do remove first 8 elements out of {woah::*} from {woah::*} (removing all elements)
3, do send {woah::*} (will return 1 and 6)
4, stonks

Errors or Screenshots

image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@UnderscoreTud UnderscoreTud added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Oct 24, 2024
@UnderscoreTud UnderscoreTud added the PR available Issues which have a yet-to-be merged PR resolving it label Oct 24, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants