Skip to content

Commit

Permalink
设置默认OpenState
Browse files Browse the repository at this point in the history
  • Loading branch information
亡灵暴龙大帝 committed Jul 1, 2024
1 parent 7fc56e6 commit 97c92f2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public PacketOpenStateUpdateNotify(Player player) {
OpenStateUpdateNotify.Builder proto = OpenStateUpdateNotify.newBuilder();

GameData.getOpenStateList().stream().map(OpenStateData::getId).forEach(id -> {

// 将所有OpenState的状态改为1 也就是全部打开 与/unlockall效果相同
proto.putOpenStateMap(id, 1);
proto.putOpenStateMap(48, 1); // // 把地图大边界状态改为0

if ((id == 45) && !GAME_OPTIONS.resinOptions.resinUsage) {
proto.putOpenStateMap(45, 0); // Remove resin from map
return;
Expand Down

0 comments on commit 97c92f2

Please sign in to comment.