From 4f26561cc178ef100980c63387608b9357a1c772 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Wed, 21 Sep 2022 16:41:07 +0200 Subject: [PATCH] Release 2.4.6 --- build.gradle.kts | 4 ++-- .../java/com/fastasyncworldedit/core/util/TextureUtil.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7ea9ffb46..e261a0e58 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,7 +23,7 @@ logger.lifecycle(""" ******************************************* """) -var rootVersion by extra("2.4.5") +var rootVersion by extra("2.4.6") var snapshot by extra("SNAPSHOT") var revision: String by extra("") var buildNumber by extra("") @@ -41,7 +41,7 @@ ext { } } -version = String.format("%s-%s", rootVersion, buildNumber) +version = String.format("%s", rootVersion) if (!project.hasProperty("gitCommitHash")) { apply(plugin = "org.ajoberstar.grgit") diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java index 078b0dc38..f6f896f56 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java @@ -599,7 +599,7 @@ public class TextureUtil implements TextureHolder { * * @return {@link VersionMetadata} containing the id (= version) and url to the client manifest itself * @throws IOException If any http / i/o operation fails. - * @since TODO + * @since 2.4.6 */ private static VersionMetadata getLatestVersion() throws IOException { try (BufferedInputStream in = new BufferedInputStream(new URL(VERSION_MANIFEST).openStream()); @@ -624,7 +624,7 @@ public class TextureUtil implements TextureHolder { * @param metadata The version metadata containing the url to the client.jar * @return The full url to the client.jar including the expected file hash for validation purposes * @throws IOException If any http / i/o operation fails. - * @since TODO + * @since 2.4.6 */ private static HashedResource getLatestClientJarUrl(VersionMetadata metadata) throws IOException { try (BufferedInputStream in = new BufferedInputStream(new URL(metadata.url()).openStream()); @@ -642,7 +642,7 @@ public class TextureUtil implements TextureHolder { * @return The hash of the file contents * @throws NoSuchAlgorithmException If the SHA-1 algorithm could not be resolved * @throws IOException If any I/O operation failed - * @since TODO + * @since 2.4.6 */ private static String calculateSha1(Path path) throws NoSuchAlgorithmException, IOException { MessageDigest digest = MessageDigest.getInstance("SHA-1");