Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from C0D3-M4513R/master
Browse files Browse the repository at this point in the history
Update Repository
  • Loading branch information
TonimatasDEV authored Jun 7, 2024
2 parents b8c2a33 + 35d8cc8 commit 0efc583
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
#Ketting PR build fix start
- name: Rename Branch, if Pull_Request
if: ${{ github.event_name == 'pull_request' }}
run: git checkout -B 'branch'
#Ketting PR build fix end

- name: Setup java 17
uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ subprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://nexus.c0d3m4513r.com/repository/Magma/' }
maven { url = 'https://reposilite.c0d3m4513r.com/Magma/' }
maven {
name = 'forge'
url = 'https://maven.minecraftforge.net/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ private InternalDependency(String path, String signature) {

private void download() throws Exception {
try {
NetworkUtils.downloadFile("https://nexus.c0d3m4513r.com/repository/Magma/" + path, file, this.signature());
NetworkUtils.downloadFile("https://reposilite.c0d3m4513r.com/Magma/" + path, file, this.signature());
} catch (Throwable e) {
System.err.println("Failed to download https://nexus.c0d3m4513r.com/repository/Magma/" + path + " to " + file.getAbsolutePath());
System.err.println("Failed to download https://reposilite.c0d3m4513r.com/Magma/" + path + " to " + file.getAbsolutePath());
try {
NetworkUtils.downloadFile("https://repo1.maven.org/maven2/" + path, file, this.signature());
} catch (Throwable e2) {
Expand Down Expand Up @@ -393,7 +393,7 @@ public Path getDependencyPath(Dependency dependency, boolean relocated) {
manager.loadFromResource(new URL("jar:file:" + JarTool.getJarPath() + "!/data/magma_libraries.txt"));

List<Repository> standardRepositories = new ArrayList<>();
standardRepositories.add(new StandardRepository("https://nexus.c0d3m4513r.com/repository/Magma"));
standardRepositories.add(new StandardRepository("https://reposilite.c0d3m4513r.com/Magma"));
standardRepositories.add(new StandardRepository("https://maven.minecraftforge.net"));
standardRepositories.add(new StandardRepository("https://maven.fabricmc.net"));
standardRepositories.add(new StandardRepository("https://repo1.maven.org/maven2"));
Expand Down

0 comments on commit 0efc583

Please sign in to comment.