Add 'player_physics_locked' check

This commit is contained in:
Joachim Stolberg 2020-11-02 18:46:57 +01:00
parent 7d11fb9481
commit 98d9e1b7cf

View File

@ -262,6 +262,10 @@ function stamina.set_sprinting(player, sprinting)
end end
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 player_monoids_mod then
if sprinting then if sprinting then
player_monoids.speed:add_change(player, 1 + settings.sprint_speed, "stamina:physics") player_monoids.speed:add_change(player, 1 + settings.sprint_speed, "stamina:physics")