Skip to content

Commit 606ae46

Browse files
committed
fix neoforge side
1 parent a21f982 commit 606ae46

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
Build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up JDK 21
12+
uses: actions/setup-java@v4
13+
with:
14+
distribution: 'zulu'
15+
java-version: 21
16+
- name: Cache
17+
uses: actions/cache@v4
18+
with:
19+
path: |
20+
~/.gradle/caches
21+
~/.gradle/wrapper
22+
.gradle
23+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
24+
- name: Build with Gradle
25+
run: |
26+
chmod +x gradlew
27+
./gradlew build
28+
- name: Upload artifacts
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: Artifacts
32+
path: |
33+
${{ github.workspace }}/neoforge/build/libs
34+
${{ github.workspace }}/fabric/build/libs
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package org.thinkingstudio.randomtitlerework.neoforge;
22

3-
import net.neoforged.fml.ModList;
3+
import net.neoforged.fml.loading.FMLLoader;
44

55
public class RTRModPlatformImpl {
66
public static int getModListSize() {
7-
return ModList.get().getMods().size();
7+
return FMLLoader.getLoadingModList().getModFiles().size();
88
}
99
}

neoforge/src/main/resources/pack.mcmeta

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)