Skip to content

Commit

Permalink
Fix https asset downloads (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 authored Jan 14, 2023
1 parent 536f912 commit 36a5e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private static void downloadAssets0(Path assetsIndexPath) throws IOException {
Path objects = assets().resolve("objects");
for (Map.Entry<String, SizeHash> entry : assetsIndex.objects.entrySet()) {
String a = entry.getValue().hash.substring(0, 2); // first 2 chars
URL url = NetUtil.url("http://resources.download.minecraft.net/" + a + "/" + entry.getValue().hash);
URL url = NetUtil.url("https://resources.download.minecraft.net/" + a + "/" + entry.getValue().hash);
Path target = objects.resolve(a).resolve(entry.getValue().hash);
if (!Files.isRegularFile(target)) {
try (AtomicFile atomicFile = new AtomicFile(target)) {
Expand Down
2 changes: 1 addition & 1 deletion buildscript/src/main/java/Buildscript.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ protected List<JavaJarDependency> createDependencies() {
public final BJavaModule brachyuraMinecraft = new BJavaModule() {
@Override
MavenId getId() {
return new MavenId(GROUP, "brachyura-minecraft", "0.3");
return new MavenId(GROUP, "brachyura-minecraft", "0.4");
}

@Override
Expand Down

0 comments on commit 36a5e70

Please sign in to comment.