mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Send attachments instantly before set_pos (#10235)
This commit is contained in:
parent
4db7fb4a3b
commit
375bcd65c1
2 changed files with 6 additions and 0 deletions
|
@ -492,6 +492,9 @@ void LuaEntitySAO::sendPosition(bool do_interpolate, bool is_movement_end)
|
|||
if(isAttached())
|
||||
return;
|
||||
|
||||
// Send attachment updates instantly to the client prior updating position
|
||||
sendOutdatedData();
|
||||
|
||||
m_last_sent_move_precision = m_base_position.getDistanceFrom(
|
||||
m_last_sent_position);
|
||||
m_last_sent_position_timer = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue