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 FrameBlock::updateShape method #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

playwmadness
Copy link

@playwmadness playwmadness commented Jul 18, 2024

Fix #6 by providing non-null BlockGetter and BlockPos values to state.isFaceSturdy in FrameBlock::checkConnection (formerly FrameBlock::validConnection).
Make it so checkConnection only checks the adjacent face of the neighboring block.
Invert the return value of checkConnection inside the function body, because every use of that function was already inverted anyway.
Optimize and inline getConnections.

* Fix client crash when placing shulker box near a frame block
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.

Game crash when shulker box is placed next to a frame
1 participant