mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-11 11:03:35 +08:00
f6326d6e4b
client modifications already perform the job of blocking malicious packets from being executed, no point in having this if self-windy is wanted
24 lines
768 B
Java
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);
|
|
}
|
|
}
|