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

Optimize Spectator container block scan #4717

Conversation

TheRealWormbo
Copy link
Collaborator

Fixes #4600. Blindly trying to get a non-existing block entity also is a bit more expensive than getting a block state that would know if there's supposed to be any block entity in the first place.

Fixes VazkiiMods#4600. Blindly trying to get a non-existing block entity also is a bit more expensive than getting a block state that would know if there's supposed to be any block entity in the first place.
@TheRealWormbo TheRealWormbo merged commit 30dd003 into VazkiiMods:1.20.x Jul 13, 2024
1 check passed
@TheRealWormbo TheRealWormbo deleted the 1.20-spectator-scan-optimization branch July 13, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Spectator item freezes mainthread for multiple seconds
1 participant