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

Brigadier: fix simpleUnwrap not keeping redirect modifier and forks properties from original node #11654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcbal
Copy link

@marcbal marcbal commented Nov 23, 2024

In ArgumentBuilder, the redirect method resets the values of the properties modifier and forks to null and false respectively.
This prevented the Brigadier commands registered during the Lifecycle event to use any redirect using the fork method.
This PR changes the use of the redirect method by the forward method to directly set the 3 forwarding related properties.

@marcbal marcbal requested a review from a team as a code owner November 23, 2024 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

1 participant