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

Delay listening behavior logic until after the event implementation initializes #6948

Merged

Conversation

APickledWalrus
Copy link
Member

Description

This PR fixes an error that could occur for events that depend on init to determine the values for getEventClasses(). This caused an error with EvtMove as listening behavior attempted to use getEventClasses before it was ready (that is, before EvtMove initialized). This error only occurred on Spigot (where entity move does not exist)


Target Minecraft Versions: any
Requirements: none
Related Issues:

getEventClasses() may depend on the impl's init
@APickledWalrus APickledWalrus added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.9 Targeting a 2.9.X version release labels Jul 31, 2024
@APickledWalrus APickledWalrus merged commit 2f94384 into SkriptLang:dev/patch Aug 1, 2024
5 checks passed
@APickledWalrus APickledWalrus deleted the patch/listening-logic branch August 1, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release 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