loop-value-X Detection #2382
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Description
When trying to subtract from a nested loop-value, the parsing of the minus symbol becomes glitchy
Steps to Reproduce
Will yield the following parse error:
![image](https://user-images.githubusercontent.com/19924575/63223623-2e504a80-c1eb-11e9-878c-6b1dccf9c3a8.png)
Will yield the following parse error:
![image](https://user-images.githubusercontent.com/19924575/63223627-3e682a00-c1eb-11e9-9468-41882a9549d2.png)
This shows that Skript is trying to parse
loop-value-X
whereX
is the nested loop order in this case asX
being1 - 1
for some reasonExpected Behavior
Yields no parsing errors (intended behavior)
Yields no parsing errors when performing addition instead of subtraction (no bracketing required at all for addition for some reason)
Errors / Screenshots
Listed above.
Server Information
Additional Context
Skript should stop detecting the nested
loop-value
's order after it has hit a non-numeral character, like space characters or another minus symbol. Since at present it seems to break with these 2 characters, but work perfecting fine with the plus symbol.The text was updated successfully, but these errors were encountered: