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 expression parsing not checking plurality in some cases #3772

Merged

Conversation

TPGamesNL
Copy link
Member

Description

SkriptParser#parseSingleExpr(boolean, LogEntry, ExprInfo) didn't check for the accepted plurality in all cases, specifically when the return type didn't match.


Target Minecraft Versions: any
Requirements: none
Related Issues: #946

@TPGamesNL TPGamesNL added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Feb 24, 2021
APickledWalrus
APickledWalrus previously approved these changes Feb 28, 2021
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Tested with the example script in the linked issue and it worked fine.

@FranKusmiruk FranKusmiruk changed the base branch from master to dev-2.6 March 3, 2021 16:03
@FranKusmiruk FranKusmiruk dismissed APickledWalrus’s stale review March 3, 2021 16:03

The base branch was changed.

@FranKusmiruk FranKusmiruk changed the base branch from dev-2.6 to master March 3, 2021 16:03
@FranKusmiruk FranKusmiruk merged commit 2bf8c84 into SkriptLang:master May 7, 2021
@TPGamesNL TPGamesNL deleted the fix/expr-plurality-parsing branch May 8, 2021 07:49
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.

3 participants