Skip to content

Commit

Permalink
use modpublisher, clean
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Feb 23, 2024
1 parent 6b35b93 commit 2d6dcf5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: gradle/wrapper-validation-action@v1
- run: |
chmod +x gradlew
./gradlew build publishUnified --stacktrace -Porg.gradle.parallel.threads=4
./gradlew build publishMod --stacktrace -Porg.gradle.parallel.threads=4
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public final class AzusaConfigImpl {
private static ConfigEnvironment ENV;
private static final Path configDir = AzusaConfigExpectPlatform.getConfigDirectory();
private static final Path CONFIG_DIR = AzusaConfigExpectPlatform.getConfigDirectory();
private static Logger LOGGER = AzusaConfigMod.LOGGER;

private AzusaConfigImpl() {
Expand Down Expand Up @@ -65,13 +65,13 @@ public static void init() {
}

if (defaultConfigExtension == null) {
ENV = new ConfigEnvironment(configDir, globalConfigExtension, serializers[0]);
ENV = new ConfigEnvironment(CONFIG_DIR, globalConfigExtension, serializers[0]);

for (int i = 1; i < serializers.length; ++i) {
ENV.registerSerializer(serializers[i]);
}
} else {
ENV = new ConfigEnvironment(configDir, globalConfigExtension, serializerMap.get(defaultConfigExtension));
ENV = new ConfigEnvironment(CONFIG_DIR, globalConfigExtension, serializerMap.get(defaultConfigExtension));

for (Serializer serializer : serializers) {
ENV.registerSerializer(serializer);
Expand Down
2 changes: 0 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ configurations {

dependencies {
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
modApi "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api_version}"
modApi "dev.architectury:architectury-fabric:${rootProject.architectury_version}"

include "org.quiltmc:quilt-config:${rootProject.quiltconfig_version}"
include "org.quiltmc.parsers:json:${rootProject.quiltparsers_version}"
Expand Down
1 change: 0 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
]
},
"depends": {
"fabric": "*",
"minecraft": "1.20.x"
}
}
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ archives_base_name=AzusaConfig
mod_version=0.1.1
maven_group=ho.artisan.azusaconfig

architectury_version=9.1.12

fabric_loader_version=0.15.2
fabric_api_version=0.91.0+1.20.1

forge_version=1.20.1-47.2.20

Expand Down

0 comments on commit 2d6dcf5

Please sign in to comment.