Skip to content

Commit

Permalink
cache new position for next move
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Dec 19, 2024
1 parent b01e0f6 commit 9354160
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 @@ -231,6 +231,7 @@ function lrfurn.on_seat_movenode(from_pos, to_pos)
local attached_to = player:get_attach()
if attached_to then --check, a stupid clearobjects might have been called, etc
attached_to:set_pos(to_pos)
seated_cache[name] = hashed_to_pos
end
end
end
Expand Down

0 comments on commit 9354160

Please sign in to comment.