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: don't rotate blocks with a facing=up/down #1

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

ZakShearman
Copy link
Contributor

@ZakShearman ZakShearman commented Jan 6, 2024

@mworzala is it ok for this to return null/empty string if the input is null/empty string? Or maybe other code was relying that this would output north to prevent some issues in that case. If so I'll need to change it to have cases for up/down instead of using the default to just return what was input.

The code currently forces north if a block is not facing north/east/south so if it is facing up or down, it will break its state.

@ZakShearman ZakShearman changed the title fix block rotation using facing=down and facing=up fix: block rotation using facing=down and facing=up Jan 6, 2024
@ZakShearman ZakShearman changed the title fix: block rotation using facing=down and facing=up fix: don't rotate blocks with a facing=up/down Jan 6, 2024
@mworzala
Copy link
Contributor

mworzala commented Jan 6, 2024

I believe this code is fine because it checks if the facing property != null before trying to rotate

@mworzala mworzala merged commit 5423471 into main Jan 6, 2024
@mworzala mworzala deleted the fix/block-rotation branch January 6, 2024 18:55
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.

2 participants