mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add wallmounted support for plantlike and plantlike_rooted nodes (#11379)
This commit is contained in:
parent
68143ed8ec
commit
f4d8cc0f0b
9 changed files with 90 additions and 7 deletions
|
@ -161,7 +161,9 @@ u8 MapNode::getWallMounted(const NodeDefManager *nodemgr) const
|
|||
if (f.param_type_2 == CPT2_WALLMOUNTED ||
|
||||
f.param_type_2 == CPT2_COLORED_WALLMOUNTED) {
|
||||
return getParam2() & 0x07;
|
||||
} else if (f.drawtype == NDT_SIGNLIKE || f.drawtype == NDT_TORCHLIKE) {
|
||||
} else if (f.drawtype == NDT_SIGNLIKE || f.drawtype == NDT_TORCHLIKE ||
|
||||
f.drawtype == NDT_PLANTLIKE ||
|
||||
f.drawtype == NDT_PLANTLIKE_ROOTED) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue