From 62fd82fa542d08a1d32578c3dede67b55efe8532 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Mon, 10 Apr 2023 02:15:08 -0400 Subject: [PATCH] Add packet for `WindSeedClientNotify` still a blacklisted packet however --- .../send/PacketWindSeedClientNotify.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketWindSeedClientNotify.java diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWindSeedClientNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWindSeedClientNotify.java new file mode 100644 index 000000000..aa7439145 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWindSeedClientNotify.java @@ -0,0 +1,18 @@ +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; + +public final class PacketWindSeedClientNotify extends BasePacket { + public PacketWindSeedClientNotify(byte[] compiledLua) { + super(PacketOpcodes.WindSeedClientNotify); + + this.setData(WindSeedClientNotify.newBuilder() + .setAreaNotify(AreaNotify.newBuilder() + .setAreaId(1).setAreaType(1) + .setAreaCode(ByteString.copyFrom(compiledLua)))); + } +}