mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
cache new position for next move
This commit is contained in:
parent
b01e0f6174
commit
93541608e7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user