Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ExprArithmetic Set Construction #6758

Merged

Conversation

APickledWalrus
Copy link
Member

Description

This PR aims to fix two issues with ExprArithmetic introduced in #6624.

Since the PR was merged into 2.8 instead of 2.9, the Set#of case was not safe since it requires Java 9. Additionally, Set#of throws an error in some cases of Vector arithmetic (multiplication) when the returnTypes list may contain duplicate values.


Target Minecraft Versions: any
Requirements: none
Related Issues: This was reported in Discord. The fix was confirmed to be working for the affected user.

@APickledWalrus APickledWalrus added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jun 3, 2024
@Moderocky Moderocky merged commit e95a35a into SkriptLang:dev/patch Jun 3, 2024
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/arithmetic-set-building branch June 3, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants