Handle ClientLockGameTimeNotify over sending it

This commit is contained in:
KingRainbow44
2023-05-09 17:09:42 -04:00
parent 061782f555
commit f7b25df91c
3 changed files with 16 additions and 21 deletions

View File

@@ -1,18 +0,0 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.world.World;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify;
public final class PacketClientLockGameTimeNotify extends BasePacket {
public PacketClientLockGameTimeNotify(World world) {
super(PacketOpcodes.ClientLockGameTimeNotify);
var packet = ClientLockGameTimeNotify.newBuilder()
.setIsLock(world.isTimeLocked())
.build();
this.setData(packet);
}
}