Fix console error spamming on Yatopia #2

Closed
minecraftplayer456 wants to merge 1 commits from minecraftplayer456/LagAssist:master into master

The not thread-safe Bukkit-API was called async instead of sync with Yatopia minecraft server. This led the AsyncCatcher throwing an Exception every time the playoutspawnentity packet was send.

I changed the call so that the Bukkit-API is called sync.

Issue: #1

The not thread-safe Bukkit-API was called async instead of sync with Yatopia minecraft server. This led the AsyncCatcher throwing an Exception every time the playoutspawnentity packet was send. I changed the call so that the Bukkit-API is called sync. Issue: #1
minecraftplayer456 added 1 commit 4 years ago
Owner

Hi, sorry for the late response. Calling the method sync is not the solution as this will have to sync for all packets sent. When a large amount of entities are spawned, this will lead to significant performance issues and slow down the netty threads.

I've implemented a patch to now try to dissect the packet in later versions rather than unsafely call a sync method async. Hope this solves the issue.

Thank you for coming with the solution and diagnosing where the problem is from. If you didn't have a commercial license, I believe your contribution is worth receiving one.

Best Regards,
Stefan

Hi, sorry for the late response. Calling the method sync is not the solution as this will have to sync for all packets sent. When a large amount of entities are spawned, this will lead to significant performance issues and slow down the netty threads. I've implemented a patch to now try to dissect the packet in later versions rather than unsafely call a sync method async. Hope this solves the issue. Thank you for coming with the solution and diagnosing where the problem is from. If you didn't have a commercial license, I believe your contribution is worth receiving one. Best Regards, Stefan
stefatorus locked as Resolved and limited conversation to collaborators 3 years ago
stefatorus closed this pull request 3 years ago
Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.