Fix enter tower dungeons

This commit is contained in:
linebear
2022-05-29 20:14:37 +08:00
committed by Melledy
parent 0ba13ef7ff
commit 18df521347
3 changed files with 9 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ public class TowerManager {
this.currentFloorId = floorData.getFloorId();
this.currentLevel = 0;
this.currentLevelId = GameData.getTowerLevelDataMap().values().stream()
.filter(x -> x.getLevelId() == floorData.getLevelId() && x.getLevelIndex() == 1)
.filter(x -> x.getLevelGroupId() == floorData.getLevelGroupId() && x.getLevelIndex() == 1)
.findFirst()
.map(TowerLevelData::getId)
.orElse(0);