Skip to content

Fix async handler scheduler support for folia#2531

Merged
dmulloy2 merged 2 commits intodmulloy2:masterfrom
Imprex-Development:fix-folia-support
Oct 25, 2023
Merged

Fix async handler scheduler support for folia#2531
dmulloy2 merged 2 commits intodmulloy2:masterfrom
Imprex-Development:fix-folia-support

Conversation

@Ingrim4
Copy link
Copy Markdown
Collaborator

@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
@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.

2 participants