Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 4c9515a

Browse files
committed
clean
1 parent a23d847 commit 4c9515a

11 files changed

Lines changed: 30 additions & 43 deletions

File tree

common/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
architectury {
22
common(rootProject.enabled_platforms.split(","))
33
}
4-
/*
5-
loom {
6-
accessWidenerPath = file("src/main/resources/examplemod.accesswidener")
7-
}
8-
*/
94

105
dependencies {
116
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies

common/src/main/java/org/localmc/tools/ftbqkeys/FTBQKeysMod.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.google.gson.Gson;
44
import com.google.gson.GsonBuilder;
55
import dev.architectury.event.events.common.CommandRegistrationEvent;
6+
import dev.latvian.mods.kubejs.KubeJSPaths;
67
import org.apache.commons.io.FileUtils;
78
import org.localmc.tools.ftbqkeys.command.FTBQKeysCommand;
89

@@ -15,8 +16,9 @@
1516

1617
public class FTBQKeysMod {
1718
public static final String MODID = "ftbqkeys";
18-
1919
public static final Path gameDir = FTBQKeysExpectPlatform.getGameDir();
20+
public static final Path configDir = FTBQKeysExpectPlatform.getConfigDir();
21+
public static final Path kubejsDir = KubeJSPaths.DIRECTORY;
2022

2123
public static final Gson gson = new GsonBuilder().setPrettyPrinting().create();
2224

common/src/main/java/org/localmc/tools/ftbqkeys/command/FTBQKeysCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public static void serverRegisterCommandsEvent(CommandDispatcher<CommandSourceSt
3838
ArgumentCommandNode<CommandSourceStack, String> argumentCommandNode = Commands.argument("lang", StringArgumentType.word()).suggests((C1, c2) -> SharedSuggestionProvider.suggest(Minecraft.getInstance().getLanguageManager().getLanguages().stream().map(LanguageInfo::getCode).toList().toArray(new String[0]), c2)).executes(Ctx -> {
3939
try {
4040
File parent = new File(FTBQKeysMod.gameDir.toFile(), "ftbqlocalizationkeys");
41-
File transFiles = new File(parent, "kubejs/assets/kubejs/lang/");
42-
File questsFolder = new File(FTBQKeysMod.gameDir.toFile(), "config/ftbquests/");
41+
File transFiles = new File(parent, FTBQKeysMod.kubejsDir.toString() + "/assets/kubejs/lang/");
42+
File questsFolder = new File(FTBQKeysMod.configDir.toFile(), "ftbquests/");
4343

4444
if (questsFolder.exists()) {
4545
File backup = new File(parent, "backup/ftbquests");

common/src/main/resources/architectury.common.json

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

common/src/main/resources/ftbqkeys.accesswidener

Lines changed: 0 additions & 1 deletion
This file was deleted.

fabric/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ architectury {
99

1010
project.archivesBaseName = rootProject.archivesBaseName + "-Fabric"
1111

12-
/*
13-
loom {
14-
accessWidenerPath = project(":common").loom.accessWidenerPath
15-
}
16-
*/
17-
1812
configurations {
1913
common
2014
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
@@ -43,8 +37,6 @@ processResources {
4337
}
4438

4539
shadowJar {
46-
exclude "architectury.common.json"
47-
4840
configurations = [project.configurations.shadowCommon]
4941
classifier "dev-shadow"
5042
}

fabric/src/main/resources/fabric.mod.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "FTBQLocalizationKeys",
66
"description": "FTBQLocalizationKeys",
77
"authors": [
8-
"TexTrue, LocalizedMC"
8+
"TexTrue, LocalizedMC","Yjn024","BlackAuresArt"
99
],
1010
"contact": {
1111
"homepage": "https://github.com/LocalizedMC/FTBQLocalizationKeys-Arch",
@@ -22,6 +22,8 @@
2222
"depends": {
2323
"fabric": "*",
2424
"minecraft": "1.19.x",
25-
"architectury": "6.x"
25+
"architectury": "6.x",
26+
"kubejs": "*",
27+
"ftbquests": "*"
2628
}
2729
}

forge/build.gradle

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@ architectury {
99

1010
project.archivesBaseName = rootProject.archivesBaseName + "-Forge"
1111

12-
/*
13-
loom {
14-
accessWidenerPath = project(":common").loom.accessWidenerPath
15-
16-
forge {
17-
convertAccessWideners = true
18-
extraAccessWideners.add loom.accessWidenerPath.get().asFile.name
19-
}
20-
}
21-
*/
22-
2312
configurations {
2413
common
2514
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
@@ -48,7 +37,6 @@ processResources {
4837

4938
shadowJar {
5039
exclude "fabric.mod.json"
51-
exclude "architectury.common.json"
5240

5341
configurations = [project.configurations.shadowCommon]
5442
classifier "dev-shadow"

forge/src/main/resources/META-INF/mods.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,16 @@ modId = "architectury"
3333
mandatory = true
3434
versionRange = "[6,)"
3535
ordering = "AFTER"
36+
side = "BOTH"
37+
38+
[[dependencies.ftbqkeys]]
39+
modId = "kubejs"
40+
mandatory = true
41+
ordering = "AFTER"
42+
side = "BOTH"
43+
44+
[[dependencies.ftbqkeys]]
45+
modId = "ftbquests"
46+
mandatory = true
47+
ordering = "AFTER"
3648
side = "BOTH"

quilt/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ architectury {
1313

1414
project.archivesBaseName = rootProject.archivesBaseName + "-Quilt"
1515

16-
/*
17-
loom {
18-
accessWidenerPath = project(":common").loom.accessWidenerPath
19-
}
20-
*/
21-
2216
configurations {
2317
common
2418
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
@@ -55,8 +49,6 @@ processResources {
5549
}
5650

5751
shadowJar {
58-
exclude "architectury.common.json"
59-
6052
configurations = [project.configurations.shadowCommon]
6153
classifier "dev-shadow"
6254
}

0 commit comments

Comments
 (0)