Skip to content

Fix rails rotation #2816

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

Open
wants to merge 1 commit into
base: version/7.3.x
Choose a base branch
from

Conversation

TiagoFar78
Copy link

Summary

Fixes an issue where rails did not rotate correctly because their shape property was not being taken into consideration when doing transformations.

Problem

Previously, WorldEdit’s block transformation logic did not account for the fact that rails use a shape property instead of a rotation or facing property. As a result, many rail shapes remained unchanged after rotation or flip transformations.

Solution

  • Added vertical flip handling for ascending rail shapes.
  • Split the shape property into two direction components and applied the transformation to each separately.

Related Issue

Closes #2657

@TiagoFar78 TiagoFar78 requested a review from a team as a code owner August 4, 2025 00:07
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.

Rails do not rotate when rotating a schematic
1 participant