Skip to content

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

Merged
APickledWalrus merged 3 commits intoSkriptLang:dev/patchfrom
APickledWalrus:patch/listening-logic
Aug 1, 2024
Merged

Delay listening behavior logic until after the event implementation initializes#6948
APickledWalrus merged 3 commits intoSkriptLang:dev/patchfrom
APickledWalrus:patch/listening-logic

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 labels Jul 31, 2024
@APickledWalrus APickledWalrus requested a review from sovdeeth July 31, 2024 15:25
@APickledWalrus APickledWalrus merged commit 2f94384 into SkriptLang:dev/patch Aug 1, 2024
@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

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