From 676ae038525668e9c01873ac16a5208170dff1e9 Mon Sep 17 00:00:00 2001 From: Shepel Pavel Date: Fri, 13 Dec 2024 17:07:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=87?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=B4=D0=B2=D0=B8=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=B8=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=83=D0=BB=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/animations.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/animations.lua b/handlers/animations.lua index 4d9c1f0..4e816d3 100644 --- a/handlers/animations.lua +++ b/handlers/animations.lua @@ -27,7 +27,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing) playerphysics.remove_physics_factor(clicker, "speed", "xdecor:sit_speed") playerphysics.remove_physics_factor(clicker, "jump", "xdecor:sit_jump") else - clicker:set_physics_override({speed = 1, jump = 1}) + clicker:set_physics_override({ speed = 1, jump = 1, speed_walk = 1, speed_fast = 1, speed_crouch = 1 }) end player_api.player_attached[player_name] = false player_api.set_animation(clicker, "stand", 30) @@ -40,7 +40,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing) playerphysics.add_physics_factor(clicker, "speed", "xdecor:sit_speed", 0) playerphysics.add_physics_factor(clicker, "jump", "xdecor:sit_jump", 0) else - clicker:set_physics_override({speed = 0, jump = 0}) + clicker:set_physics_override({ speed = 0, jump = 0, speed_walk = 0, speed_fast = 0, speed_crouch = 0 }) end clicker:set_pos(pos) player_api.player_attached[player_name] = true