diff --git a/doc/lua_api.md b/doc/lua_api.md index 8f43097838cd3..fd8f6fb8bb9b1 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -9850,11 +9850,11 @@ Used by `core.register_node`. -- affected by the `movement_liquid_*` settings. climb_factor = 1.0, - -- The speed at which a climbable node can be climbed is multiplied - -- with this number. Must not be negative. No effect if node isn't - -- climbable. + -- The speed at which a climbable node can be climbed up and down + -- is multiplied by this number. Must not be negative. No effect if + -- node isn't climbable. -- Note: The base climbing speed is controlled by the setting - -- `movement_speed_climb`. + -- `movement_speed_climb` multiplied by the physics override `speed_climb`. buildable_to = false, -- If true, placed nodes can replace this node diff --git a/src/nodedef.cpp b/src/nodedef.cpp index f60f8fbfb5540..9fbfd663eea37 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -406,7 +406,7 @@ void ContentFeatures::reset() move_resistance = 0; liquid_move_physics = false; post_effect_color_shaded = false; - climb_factor = 1.0; + climb_factor = 1.0f; } void ContentFeatures::setAlphaFromLegacy(u8 legacy_alpha)