fix seating only working once till server restarts

This commit is contained in:
wsor4035 2024-09-11 20:18:38 -04:00
parent a100d20d4d
commit 335559feb3

View File

@ -142,6 +142,7 @@ function lrfurn.stand(clicker)
xcompat.player.player_attached[clicker:get_player_name()] = false
if physics_cache[clicker:get_player_name()] then
clicker:set_physics_override(physics_cache[clicker:get_player_name()])
physics_cache[clicker:get_player_name()] = nil
else --in case this is called and the cache is empty
clicker:set_physics_override({speed = 1, jump = 1, gravity = 1})
end