Run spotlessApply

This commit is contained in:
KingRainbow44
2023-05-02 23:21:17 -04:00
Unverified
parent b877ca9fce
commit d67e2d0c5e
1412 changed files with 1307454 additions and 1212597 deletions
@@ -6,18 +6,21 @@ import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.QuestGlobalVarNotifyOuterClass.QuestGlobalVarNotify;
import emu.grasscutter.net.proto.QuestGlobalVarOuterClass.QuestGlobalVar;
public final class PacketQuestGlobalVarNotify extends BasePacket {
public PacketQuestGlobalVarNotify(Player player) {
super(PacketOpcodes.QuestGlobalVarNotify);
this.setData(QuestGlobalVarNotify.newBuilder()
.addAllVarList(player.getQuestGlobalVariables().entrySet().stream()
.map(entry -> QuestGlobalVar.newBuilder()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build())
.toList())
.build());
this.setData(
QuestGlobalVarNotify.newBuilder()
.addAllVarList(
player.getQuestGlobalVariables().entrySet().stream()
.map(
entry ->
QuestGlobalVar.newBuilder()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build())
.toList())
.build());
}
}