Skip to content

Commit

Permalink
improve things
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Sep 8, 2024
1 parent 9c9a2d3 commit f02f927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homedecor_seating/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats)
return itemstack
end

if xcompat.player.player_attached[clicker:get_player_name()] then
if physics_cache[clicker:get_player_name()] then
lrfurn.stand(clicker)
return itemstack
end
Expand Down Expand Up @@ -142,7 +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()])
else
else --in case this is called and the cache is empty
clicker:set_physics_override({speed = 1, jump = 1, gravity = 1})
end
end
Expand Down

0 comments on commit f02f927

Please sign in to comment.