Skip to content

Commit

Permalink
Merge 9eac943 into f4b2fef
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 authored Aug 22, 2020
2 parents f4b2fef + 9eac943 commit 386a70b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public CompletableFuture<Void> update(FeaturedMod featuredMod, Integer version,

if (!NAMES_OF_FEATURED_BASE_MODS.contains(featuredMod.getTechnicalName())) {
future = future.thenCompose(aVoid -> modService.getFeaturedMod(FAF.getTechnicalName()))
.thenCompose(baseMod -> updateFeaturedMod(baseMod, null))
.thenCompose(baseMod -> updateFeaturedMod(baseMod, version))
.thenAccept(patchResults::add);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/faforever/client/replay/ReplayService.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,14 @@ private void runFafReplayFile(Path path) throws IOException {

// For some reason in the coop replay the map name is null in the metadata
// So we just take it directly from the replay data.
if (StringUtils.isEmptyOrNull(mapName)) {
if (gameType.equals("coop")) {
mapName = parseMapFolderName(rawReplayBytes);
}

// For map generator games the map name is "None" because replay server gets map name by from DB based on filename
// from replay data, and DB does not contain generated maps.
if (StringUtils.equalsIgnoreCase(mapName, "None")) {
String maybeMapGen = parseMapName(rawReplayBytes).replaceAll(".scmap", "");
String maybeMapGen = parseMapFolderName(rawReplayBytes);
if (mapGeneratorService.isGeneratedMap(maybeMapGen)) {
mapName = maybeMapGen;
}
Expand Down

0 comments on commit 386a70b

Please sign in to comment.