1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

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

View File

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