Skip to content

Commit

Permalink
prevent attempt to download official cavedog maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Axle1975 committed Sep 4, 2022
1 parent 217aaaa commit aed0575
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/faforever/client/map/MapService.java
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,11 @@ public CompletableFuture<MapBean> ensureMap(

final MapBean installedVersion = getInstallation(modTechnical).mapsByName.getOrDefault(mapName, null);

if (mapName != null && isOfficialMap(mapName)) {
logger.info("[ensureMap] '{}'/{} is an official cavedog map, so taking no action", mapName, mapCrc);
return CompletableFuture.completedFuture(installedVersion);
}

if (mapName != null && mapCrc != null && isInstalled(modTechnical, mapName, mapCrc)) {
logger.info("[ensureMap] '{}'/{} is already installed", mapName, mapCrc);
return CompletableFuture.completedFuture(installedVersion);
Expand Down

0 comments on commit aed0575

Please sign in to comment.