remove case for pong

This commit is contained in:
Holly Stubbs 2022-09-30 11:38:41 +01:00
parent ad6ad5ed2c
commit 61e7476600
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -177,10 +177,6 @@ module.exports = async function(req, res) {
UserPresenceBundle(PacketUser); UserPresenceBundle(PacketUser);
break; break;
case packetIDs.client_pong: // Pretty sure this is just a client ping
// so we probably don't do anything here
break; // It's probably just the client wanting to pull data down. (That's exactly what it is)
case packetIDs.client_startSpectating: case packetIDs.client_startSpectating:
Spectator.startSpectatingUser(PacketUser, CurrentPacket.data); Spectator.startSpectatingUser(PacketUser, CurrentPacket.data);
break; break;
@ -328,7 +324,7 @@ module.exports = async function(req, res) {
default: default:
// Ignore client_beatmapInfoRequest and client_receiveUpdates // Ignore client_beatmapInfoRequest and client_receiveUpdates
if (CurrentPacket.id == 68 || CurrentPacket.id == 79) break; if (CurrentPacket.id == 68 || CurrentPacket.id == 79 || CurrentPacket.id == 4) break;
// Print out unimplemented packet // Print out unimplemented packet
console.dir(CurrentPacket); console.dir(CurrentPacket);
break; break;