From 80574cdbe8628df0bfbff1332b77a1cf822ca58a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 11 May 2023 20:50:52 +0000 Subject: [PATCH] Fix rotation of 4dir in schematic placement (#13432) --- src/mapnode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 0d58b45db..b130a7363 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -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]; }