Fix rotation of 4dir in schematic placement (#13432)

This commit is contained in:
Wuzzy 2023-05-11 20:50:52 +00:00 committed by GitHub
parent 3de54039ae
commit 80574cdbe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -154,7 +154,7 @@ void MapNode::rotateAlongYAxis(const NodeDefManager *nodemgr, Rotation rot)
param2 |= rotate_facedir[index]; param2 |= rotate_facedir[index];
} else if (cpt2 == CPT2_4DIR || cpt2 == CPT2_COLORED_4DIR) { } else if (cpt2 == CPT2_4DIR || cpt2 == CPT2_COLORED_4DIR) {
u8 fourdir = param2 & 3; u8 fourdir = param2 & 3;
u8 index = fourdir + rot; u8 index = fourdir * 4 + rot;
param2 &= ~3; param2 &= ~3;
param2 |= rotate_facedir[index]; param2 |= rotate_facedir[index];
} }