diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0d18421..1e2fbf0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 diff --git a/src/main/java/i18nupdatemod/core/I18nConfig.java b/src/main/java/i18nupdatemod/core/I18nConfig.java index f9a33d0..fab2c2e 100644 --- a/src/main/java/i18nupdatemod/core/I18nConfig.java +++ b/src/main/java/i18nupdatemod/core/I18nConfig.java @@ -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) { @@ -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;