Skip to content

Commit

Permalink
Merge pull request #1 from Fork-HongchengQ/pr1
Browse files Browse the repository at this point in the history
Fix:There is a chance that a friend will disappear
  • Loading branch information
WatchAndyTW authored Apr 15, 2024
2 parents eb9cce2 + 4537d22 commit 5821a96
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5821a96

Please sign in to comment.