]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - builtin/game/falling.lua
Add wallmounted support for plantlike and plantlike_rooted nodes (#11379)
[dragonfireclient.git] / builtin / game / falling.lua
index 4a13b0776a74782843662bbfaf856cc55f62c73e..6db56353449535fa45add44b4051feaa475d898f 100644 (file)
@@ -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