From 98d9e1b7cfcc634d362cfe9635079f8e1a384f7e Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Mon, 2 Nov 2020 18:46:57 +0100 Subject: [PATCH] Add 'player_physics_locked' check --- stamina/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stamina/init.lua b/stamina/init.lua index ca5f97f..9cacb12 100644 --- a/stamina/init.lua +++ b/stamina/init.lua @@ -262,6 +262,10 @@ function stamina.set_sprinting(player, sprinting) end end + if player and player:get_meta() and player:get_meta():get_int("player_physics_locked") ~= 0 then + return + end + if player_monoids_mod then if sprinting then player_monoids.speed:add_change(player, 1 + settings.sprint_speed, "stamina:physics")