Skip to content

Add warning for ambiguous arg subtraction #7808

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

Open
wants to merge 2 commits into
base: dev/patch
Choose a base branch
from

Conversation

sovdeeth
Copy link
Member

Description

A common error found in help channels is a user using a command argument in a math equation and not getting the result they expected. Often this is due to arg-1 being parsed as (arg) - 1 instead of arg-1 when the command only has a single argument.
This adds a warning for this scenario.
image


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

@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Apr 18, 2025
@sovdeeth sovdeeth requested review from UnderscoreTud and a team as code owners April 18, 2025 03:06
@sovdeeth sovdeeth requested review from APickledWalrus and removed request for a team April 18, 2025 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants