Skip to content

Commit

Permalink
fix seating only working once till server restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Sep 12, 2024
1 parent a100d20 commit 335559f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homedecor_seating/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 335559f

Please sign in to comment.