mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix rotation of 4dir in schematic placement (#13432)
This commit is contained in:
parent
3de54039ae
commit
80574cdbe8
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user