mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Rename some packet and handlers to <packet>_Legacy name for compat layer between new network changes and old network clients
This commit is contained in:
parent
4e63c977c7
commit
126f36c2e6
9 changed files with 26 additions and 26 deletions
|
@ -1506,7 +1506,7 @@ void Server::SendAccessDenied(u16 peer_id,const std::wstring &reason)
|
|||
{
|
||||
DSTACK(__FUNCTION_NAME);
|
||||
|
||||
NetworkPacket* pkt = new NetworkPacket(TOCLIENT_ACCESS_DENIED, 0, peer_id);
|
||||
NetworkPacket* pkt = new NetworkPacket(TOCLIENT_ACCESS_DENIED_LEGACY, 0, peer_id);
|
||||
*pkt << reason;
|
||||
Send(pkt);
|
||||
}
|
||||
|
@ -1677,7 +1677,7 @@ void Server::SendDeleteParticleSpawner(u16 peer_id, u32 id)
|
|||
{
|
||||
DSTACK(__FUNCTION_NAME);
|
||||
|
||||
NetworkPacket* pkt = new NetworkPacket(TOCLIENT_DELETE_PARTICLESPAWNER, 2, peer_id);
|
||||
NetworkPacket* pkt = new NetworkPacket(TOCLIENT_DELETE_PARTICLESPAWNER_LEGACY, 2, peer_id);
|
||||
|
||||
// Ugly error in this packet
|
||||
*pkt << (u16) id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue