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

[ci skip] Add @throws to BlockData#createBlockState JavaDoc #11888

Closed
wants to merge 1 commit into from

Conversation

T14D3
Copy link

@T14D3 T14D3 commented Jan 2, 2025

Properly indicate in the JavaDoc that the method can throw an IllegalStateException if a block requires to be placed to get a BlockState for it (Currently only occurs for MOVING_PISTON).

Addresses #11887

@emilyy-dev
Copy link
Member

This is not a proper fix, that error should not happen altogether so the underlying issue causing this should be fixed instead

@Machine-Maker
Copy link
Member

Machine-Maker commented Jan 3, 2025

Agreed with @emilyy-dev . The underlying issue should be fixed so the exception is not thrown at all. It can be avoided in this case. First to fix the swallowed exception and to fix the issue with moving piston.

If you'd like to work on that, feel free to open another pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

3 participants