mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-11 13:43:34 +08:00
Remove banned packets
client modifications already perform the job of blocking malicious packets from being executed, no point in having this if self-windy is wanted
This commit is contained in:
@@ -3,19 +3,21 @@ package emu.grasscutter.server.packet.send;
|
||||
import com.google.protobuf.ByteString;
|
||||
import emu.grasscutter.net.packet.BasePacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify;
|
||||
import emu.grasscutter.net.proto.WindSeedClientNotifyOuterClass.WindSeedClientNotify.AreaNotify;
|
||||
import emu.grasscutter.net.proto.WindSeedType1NotifyOuterClass.WindSeedType1Notify;
|
||||
|
||||
public final class PacketWindSeedClientNotify extends BasePacket {
|
||||
/**
|
||||
* Constructor for the generic WindSeedClientNotify packet.
|
||||
*
|
||||
* @param compiledLua The compiled Lua to send to the client.
|
||||
*/
|
||||
public PacketWindSeedClientNotify(byte[] compiledLua) {
|
||||
super(PacketOpcodes.WindSeedClientNotify);
|
||||
super(PacketOpcodes.WindSeedType1Notify);
|
||||
|
||||
this.setData(
|
||||
WindSeedClientNotify.newBuilder()
|
||||
.setAreaNotify(
|
||||
AreaNotify.newBuilder()
|
||||
.setAreaId(1)
|
||||
.setAreaType(1)
|
||||
.setAreaCode(ByteString.copyFrom(compiledLua))));
|
||||
var packet = WindSeedType1Notify.newBuilder()
|
||||
.setPayload(ByteString.copyFrom(compiledLua))
|
||||
.build();
|
||||
|
||||
this.setData(packet);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user