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:
KingRainbow44
2023-05-18 22:28:37 -04:00
Unverified
parent 5605163607
commit f6326d6e4b
3 changed files with 19 additions and 25 deletions
@@ -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);
}
}