1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 16:30:21 +01:00

cache new position for next move

This commit is contained in:
Luke aka SwissalpS 2024-12-19 14:34:28 +01:00
parent b01e0f6174
commit 93541608e7

View File

@ -231,6 +231,7 @@ function lrfurn.on_seat_movenode(from_pos, to_pos)
local attached_to = player:get_attach() local attached_to = player:get_attach()
if attached_to then --check, a stupid clearobjects might have been called, etc if attached_to then --check, a stupid clearobjects might have been called, etc
attached_to:set_pos(to_pos) attached_to:set_pos(to_pos)
seated_cache[name] = hashed_to_pos
end end
end end
end end