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 async handler scheduler support for folia #2531

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

Ingrim4
Copy link
Contributor

@Ingrim4 Ingrim4 commented Sep 9, 2023

When utilizing ProtocolLib within a server powered by Folia that employs asynchronous listeners, invoking the start method of an AsyncListenerHandler will use the default Bukkit scheduler. This will throw an exception since the Bukkit scheduler got replaced by multiple scheduler instances in Folia. This PR should fix this behavior though using the AsyncScheduler if Folia is present.

@dmulloy2 dmulloy2 merged commit d4b4f50 into dmulloy2:master Oct 25, 2023
3 checks passed
@Ingrim4 Ingrim4 deleted the fix-folia-support branch June 6, 2024 17:05
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.

None yet

2 participants