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 rotation of 4dir in schematic placement #13432

Merged
merged 1 commit into from May 11, 2023
Merged

Conversation

Wuzzy2
Copy link
Contributor

@Wuzzy2 Wuzzy2 commented Apr 15, 2023

Sadly, the 4dir / color4dir paramtype2 is incorrectly rotated when a 4dir node is placed in a schematic. The rotation code had a bug.

This PR fixes the rotation of 4dir and color4dir nodes if placed in a schematic.

How to test:
Place a schematic with 4dir nodes.

@wsor4035 wsor4035 added Bugfix 🐛 PRs that fix a bug Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines labels Apr 15, 2023
@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Apr 17, 2023

Please add this to the 5.7.1 milestone. (If a bugfix release is planned.)

It fixes a new feature in 5.7.0 which I screwed up due to my own incompetence (sorry ...).

@SmallJoker
Copy link
Member

I placed a few testnodes:4dir nodes and used //mtschemsave schem1 and //mtschemplace schem1 but I cannot reproduce this issue in master:

grafik

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Apr 27, 2023

The bug manifests only if the schematic is placed with 90°, 180° or 270° rotation. Try again when you place the schematic with rotation.

Reproduced in d197ff0.

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works

@sfan5 sfan5 merged commit 80574cd into minetest:master May 11, 2023
13 checks passed
Andrey2470T pushed a commit to Andrey2470T/minetest that referenced this pull request May 31, 2023
Wuzzy2 added a commit to Wuzzy2/minetest that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug One approval ✅ ◻️ Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants