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

[1.20.1] Fix bed occupation state check in LivingEntityMixin#setOccupiedState #188

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

unilock
Copy link
Contributor

@unilock unilock commented Jan 11, 2025

Removes the incorrect inversion and checks for originalState.contains(BedBlock.OCCUPIED) as the original Fabric API does

Fixes a crash when a Fabric mod allows the player to sleep on blocks that aren't beds (e.g. Spectrum, with its "Night Salts")

Removes the incorrect inversion and checks for originalState.contains(BedBlock.OCCUPIED) as the original Fabric API does

Signed-off-by: unilock <[email protected]>
@Su5eD Su5eD self-assigned this Jan 11, 2025
@Su5eD Su5eD added the bug Something isn't working label Jan 11, 2025
@Su5eD Su5eD merged commit 4ca7515 into Sinytra:1.20.1 Jan 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants