Skip to content

Commit

Permalink
Update for 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed May 30, 2024
1 parent 0bebb3f commit 9e1f04c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
modrinth-publish: true
artifacts-path: 'build/libs/better-fabric-console-mc*.jar'
loom: true
jdk-version: 21
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ version = "1.1.9-SNAPSHOT"
group = "xyz.jpenilla"
description = "Server-side Fabric mod enhancing the console with tab completions, colored log output, command syntax highlighting, command history, and more."

val minecraftVersion = "1.20.4"
val minecraftVersion = "1.20.6"

dependencies {
minecraft("com.mojang", "minecraft", minecraftVersion)
mappings(loom.officialMojangMappings())
modImplementation("net.fabricmc", "fabric-loader", "0.15.3")
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.91.2+1.20.4")
modImplementation("net.fabricmc", "fabric-loader", "0.15.11")
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.99.0+1.20.6")

annotationProcessor("org.apache.logging.log4j", "log4j-core", "2.22.1")

Expand All @@ -29,7 +29,7 @@ dependencies {

implementation(include("org.fusesource.jansi", "jansi", "2.4.1"))

modImplementation(include("net.kyori", "adventure-platform-fabric", "5.12.0"))
modImplementation(include("net.kyori", "adventure-platform-fabric", "5.13.0"))

implementation(include("com.typesafe:config:1.4.3")!!)
implementation(include("io.leangen.geantyref:geantyref:1.3.14")!!)
Expand All @@ -42,7 +42,7 @@ dependencies {
}

indra {
javaVersions().target(17)
javaVersions().target(21)
}

license {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import com.mojang.logging.LogUtils;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.net.URI;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.nio.file.Files;
Expand Down Expand Up @@ -69,10 +69,10 @@ static void downloadFile(final String url, final Path dest) throws IOException {
final Path tempDest = dest.resolveSibling(dest.getFileName().toString() + ".download.tmp");
Files.deleteIfExists(tempDest);

LOGGER.info("Downloading " + url + "...");
LOGGER.info("Downloading {}...", url);
final long start = System.currentTimeMillis();
try (
final ReadableByteChannel downloadChannel = Channels.newChannel(new URL(url).openStream());
final ReadableByteChannel downloadChannel = Channels.newChannel(URI.create(url).toURL().openStream());
final FileOutputStream outputStream = new FileOutputStream(tempDest.toFile())
) {
outputStream.getChannel().transferFrom(downloadChannel, 0, Long.MAX_VALUE);
Expand Down

0 comments on commit 9e1f04c

Please sign in to comment.