Files
Grasscutter/src/main/java/emu/grasscutter/server/packet/send/PacketWindSeedClientNotify.java
T
KingRainbow44 f6326d6e4b 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
2023-05-18 22:28:37 -04:00

24 lines
768 B
Java

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.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.WindSeedType1Notify);
var packet = WindSeedType1Notify.newBuilder()
.setPayload(ByteString.copyFrom(compiledLua))
.build();
this.setData(packet);
}
}