diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java index 6fbc5d3c8d4..d6631d9c052 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java @@ -20,6 +20,14 @@ public PacketOpenStateUpdateNotify(Player player) { OpenStateUpdateNotify.Builder proto = OpenStateUpdateNotify.newBuilder(); GameData.getOpenStateList().stream().map(OpenStateData::getId).forEach(id -> { + + // 将所有OpenState的状态改为1 也就是全部打开 与/unlockall效果相同 + proto.putOpenStateMap(id, 1); + if (id == 48) { + proto.putOpenStateMap(48, 0); // 把地图边界状态改为0 + return; + } + if ((id == 45) && !GAME_OPTIONS.resinOptions.resinUsage) { proto.putOpenStateMap(45, 0); // Remove resin from map return;