Repeat elements are skipped. #7162
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
Skript/Server Version
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
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: