Mwexim / skript-parser

A standalone and improved implementation of the Skript language for use outside of Minecraft servers.
MIT License
49 stars 15 forks source link

Allow SimpleLiteral to be a vararg #143

Closed TheLimeGlass closed 11 months ago

TheLimeGlass commented 1 year ago

Allow SimpleLiteral to be a vararg for accepting a single value.

Mwexim commented 11 months ago

Sorry to hijack this pull request like this. My original intention was to just add the changes I proposed, but then I saw that the proposal itself is just not a good idea because of the way varargs and generics are handled (there's a reason the original author Syst3ms) added a specific constructor that needed a class argument as well).

That said, I still made some minor changes, hence why I'm still merging the pull request.