diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-04-20 17:50:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 19:50:03 +0200 |
commit | 90a7bd6a0afb6509e96bcb373f95b448ee7f3b1d (patch) | |
tree | b3243491bdddb11c2ac01a488ad700840f1b5e85 /src/mapnode.cpp | |
parent | 16e5b39e1dbe503684effb11f4b87a641c3e43e6 (diff) | |
download | hax-minetest-server-90a7bd6a0afb6509e96bcb373f95b448ee7f3b1d.tar.gz hax-minetest-server-90a7bd6a0afb6509e96bcb373f95b448ee7f3b1d.zip |
Put torch/signlike node on floor if no paramtype2 (#11074)
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 20980b238..c885bfe1d 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -159,8 +159,11 @@ u8 MapNode::getWallMounted(const NodeDefManager *nodemgr) const { const ContentFeatures &f = nodemgr->get(*this); if (f.param_type_2 == CPT2_WALLMOUNTED || - f.param_type_2 == CPT2_COLORED_WALLMOUNTED) + f.param_type_2 == CPT2_COLORED_WALLMOUNTED) { return getParam2() & 0x07; + } else if (f.drawtype == NDT_SIGNLIKE || f.drawtype == NDT_TORCHLIKE) { + return 1; + } return 0; } |