Skip to content

Conversation

@Phoenix616
Copy link

@Phoenix616 Phoenix616 commented Feb 7, 2024

This moves all event.isCancelled() checks to ignoreCancelled = true values on the @EventHandler annotation. This not only makes the code cleaner but also slightly improves performance of all those listeners as this can now be directly checked by the PluginManager when choosing the Listeners to forward Events to instead of having to first call the listener method handle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant