Skip to content

Commit

Permalink
Tweak: Gradle wrapper version
Browse files Browse the repository at this point in the history
  • Loading branch information
xfl03 committed Oct 24, 2024
1 parent edcc669 commit f2d434d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/java/i18nupdatemod/core/I18nConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private static GameMetaData getGameMetaData(String minecraftVersion) {
return i18nMetaData.games.stream().filter(it -> {
VersionRange range = new VersionRange(it.gameVersions);
return range.contains(version);
}).findFirst().orElseThrow(IllegalStateException::new);
}).findFirst().orElseThrow(() -> new IllegalStateException(String.format("Version %s not found in i18n meta", minecraftVersion)));
}

private static AssetMetaData getAssetMetaData(String minecraftVersion, String loader) {
Expand All @@ -58,7 +58,7 @@ public static GameAssetDetail getAssetDetail(String minecraftVersion, String loa
GameMetaData convert = getGameMetaData(minecraftVersion);
GameAssetDetail ret = new GameAssetDetail();

ret.downloads = convert.convertFrom.stream().map(it->getAssetMetaData(it,loader)).map(it -> {
ret.downloads = convert.convertFrom.stream().map(it -> getAssetMetaData(it, loader)).map(it -> {
GameAssetDetail.AssetDownloadDetail adi = new GameAssetDetail.AssetDownloadDetail();
adi.fileName = it.filename;
adi.fileUrl = CFPA_ASSET_ROOT + it.filename;
Expand Down

0 comments on commit f2d434d

Please sign in to comment.