diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-07-15 19:19:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 21:19:59 +0200 |
commit | f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db (patch) | |
tree | bff947ef11780c27de4304b7a05be1de71be3d89 /builtin | |
parent | 68143ed8eca81857d3d28c2c4059411d72a78e8e (diff) | |
download | minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.tar.gz minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.tar.bz2 minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.zip |
Add wallmounted support for plantlike and plantlike_rooted nodes (#11379)
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/game/falling.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua index 4a13b0776..6db563534 100644 --- a/builtin/game/falling.lua +++ b/builtin/game/falling.lua @@ -157,7 +157,8 @@ core.register_entity(":__builtin:falling_node", { if euler then self.object:set_rotation(euler) end - elseif (def.paramtype2 == "wallmounted" or def.paramtype2 == "colorwallmounted" or def.drawtype == "signlike") then + elseif (def.drawtype ~= "plantlike" and def.drawtype ~= "plantlike_rooted" and + (def.paramtype2 == "wallmounted" or def.paramtype2 == "colorwallmounted" or def.drawtype == "signlike")) then local rot = node.param2 % 8 if (def.drawtype == "signlike" and def.paramtype2 ~= "wallmounted" and def.paramtype2 ~= "colorwallmounted") then -- Change rotation to "floor" by default for non-wallmounted paramtype2 |