Merge branch 'development' of github.com:Grasscutters/Grasscutter into development

This commit is contained in:
Bwly999
2022-05-06 22:38:04 +08:00
18 changed files with 536 additions and 41 deletions

View File

@@ -157,6 +157,12 @@ public class GameSession extends KcpChannel {
Grasscutter.getLogger().warn("Tried to send packet with missing cmd id!");
return;
}
// DO NOT REMOVE (unless we find a way to validate code before sending to client which I don't think we can)
// Stop WindSeedClientNotify from being sent for security purposes.
if(PacketOpcodes.BANNED_PACKETS.contains(packet.getOpcode())) {
return;
}
// Header
if (packet.shouldBuildHeader()) {