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 Hoatzin worldgen thread lock #3

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

itsmeow
Copy link
Contributor

@itsmeow itsmeow commented Nov 19, 2024

Resolves the game locking up on the server thread when a Hoatzin attempts to spawn. Closes #1.

image

This is caused by isOnGround being overridden, which is a method utilized by writeNbt during world generation to fetch its own internal state. The overridden version attempts to read the block below, however the chunk does not exist as it is still generating at this point, so it enters an infinite loop waiting for the thread to unlock and freezes the game.

Renaming the overridden method and its usages to something else solves the problem.

@cybercat5555 cybercat5555 merged commit 718156c into cybercat5555:1.20 Nov 20, 2024
2 checks passed
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.

Faunus occasionally causes a world to freeze
2 participants