aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mapnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index 3940c5867..056b94054 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -119,7 +119,7 @@ u8 MapNode::getFaceDir(INodeDefManager *nodemgr) const
{
const ContentFeatures &f = nodemgr->get(*this);
if(f.param_type_2 == CPT2_FACEDIR)
- return getParam2() & 0x1F;
+ return (getParam2() & 0x1F) % 24;
return 0;
}