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 Command Syncing CME #6763

Conversation

APickledWalrus
Copy link
Member

Description

This PR aims to fix the CME that occurs when syncing commands on Paper 1.20.5+ versions due to internal command changes. This issue only seems to occur when a command is unregistered, registered, and then synced in the same tick. Adding a single tick delay seems to remove the error. I would prefer a fix that doesn't force a delay, but I could not find any other solutions.


Target Minecraft Versions: any
Requirements: none
Related Issues:

@APickledWalrus APickledWalrus added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jun 3, 2024
@APickledWalrus APickledWalrus changed the base branch from master to dev/patch June 3, 2024 20:03
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

Should we only run the delay on 1.20.6+, do you think?

@APickledWalrus
Copy link
Member Author

Should we only run the delay on 1.20.6+, do you think?

I was wondering about that too but wasn't sure. I'm not sure if it makes a major difference.

@sovdeeth
Copy link
Member

sovdeeth commented Jun 3, 2024

I suppose it would be better to make the minimum amount of behavioral change possible, but also it'd be nice to have the same behavior on all versions. I'm not too fussed either way.

@sovdeeth sovdeeth added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Jun 6, 2024
@APickledWalrus APickledWalrus merged commit 23cc26b into SkriptLang:dev/patch Jun 6, 2024
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/command-syncing-errors branch June 6, 2024 16:50
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. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants