SimpleLiterals pass "constant" backing array to other syntax. #6682
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.
patch-ready
A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Skript/Server Version
Bug Description
Simple literals store their value in a backing array, this is passed as-is in getArray, etc. and so any badly-formed syntax that takes the
Object[]
from getArray and uses it to exchange data could permanently modify the literal value.Expected Behavior
Probably shouldn't pass the backing array here.
Steps to Reproduce
:(
Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: