Skip to content
Snippets Groups Projects
Commit 9e1e4b62 authored by paramat's avatar paramat
Browse files

RotateAlongYAxis: For facedir case, return if param2 >= 4

parent aef1b41b
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,9 @@ void MapNode::rotateAlongYAxis(INodeDefManager *nodemgr, Rotation rot) {
ContentParamType2 cpt2 = nodemgr->get(*this).param_type_2;
if (cpt2 == CPT2_FACEDIR) {
if (param2 >= 4)
return;
u8 newrot = param2 & 3;
param2 &= ~3;
param2 |= (newrot + rot) & 3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment