1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-08 19:15:28 +01:00

Propagate peer ID change to outgoing reliables (#15680)

Otherwise a desync could ocurr since the server does strict checking.
fixes #15627
This commit is contained in:
sfan5
2025-02-01 13:23:00 +01:00
committed by GitHub
parent 29cfb6efff
commit c0422b18e7
5 changed files with 64 additions and 2 deletions

View File

@@ -70,6 +70,7 @@ private:
void connect(Address address);
void disconnect();
void disconnect_peer(session_t peer_id);
void fix_peer_id(session_t own_peer_id);
void send(session_t peer_id, u8 channelnum, const SharedBuffer<u8> &data);
void sendReliable(ConnectionCommandPtr &c);
void sendToAll(u8 channelnum, const SharedBuffer<u8> &data);