Skript

Skript

743k Downloads

Repeat elements are skipped.

Asleeepp opened this issue ยท 0 comments

commented

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.