aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-04-20 17:50:03 +0000
committerGitHub <noreply@github.com>2021-04-20 19:50:03 +0200
commit90a7bd6a0afb6509e96bcb373f95b448ee7f3b1d (patch)
treeb3243491bdddb11c2ac01a488ad700840f1b5e85 /src/mapnode.cpp
parent16e5b39e1dbe503684effb11f4b87a641c3e43e6 (diff)
downloadhax-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.cpp5
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;
}