From 8a5a6ab83e9d23f0ff33c357a6403b12171ddf72 Mon Sep 17 00:00:00 2001 From: ghjbvvgh <104608646+ghjbvvgh@users.noreply.github.com> Date: Wed, 11 Jan 2023 07:28:00 +0800 Subject: [PATCH] Unlock hidden points (#2016) --- .../server/packet/send/PacketGetScenePointRsp.java | 2 ++ .../server/packet/send/PacketScenePointUnlockNotify.java | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java index f9853ac4c..5b0f5f5b4 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java @@ -17,9 +17,11 @@ public class PacketGetScenePointRsp extends BasePacket { if (GameData.getScenePointIdList().size() == 0) { for (int i = 1; i < 1000; i++) { p.addUnlockedPointList(i); + p.addUnhidePointList(i); } } else { p.addAllUnlockedPointList(player.getUnlockedScenePoints(sceneId)); + p.addAllUnhidePointList(player.getUnlockedScenePoints(sceneId)); } for (int i = 1; i < 9; i++) { diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePointUnlockNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePointUnlockNotify.java index 937a8998e..3d91c620c 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePointUnlockNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePointUnlockNotify.java @@ -10,7 +10,8 @@ public class PacketScenePointUnlockNotify extends BasePacket { ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder() .setSceneId(sceneId) - .addPointList(pointId); + .addPointList(pointId) + .addUnhidePointList(pointId); this.setData(p); } @@ -20,7 +21,8 @@ public class PacketScenePointUnlockNotify extends BasePacket { ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder() .setSceneId(sceneId) - .addAllPointList(pointIds); + .addAllPointList(pointIds) + .addAllUnhidePointList(pointIds); this.setData(p); }