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

Commit 9cd3fff

Browse files
committed
clean
1 parent 8b648fd commit 9cd3fff

12 files changed

Lines changed: 33 additions & 49 deletions

File tree

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ allprojects {
3232

3333
repositories {
3434
maven { url "https://maven.saps.dev/minecraft" }
35-
//maven { url "https://jitpack.io" }
3635
}
3736

3837
tasks.withType(JavaCompile) {

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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +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.architectury.platform.Platform;
6+
import dev.latvian.mods.kubejs.KubeJSPaths;
77
import org.apache.commons.io.FileUtils;
88
import org.localmc.tools.ftbqkeys.command.FTBQKeysCommand;
99

@@ -16,8 +16,9 @@
1616

1717
public class FTBQKeysMod {
1818
public static final String MODID = "ftbqkeys";
19-
2019
public static final Path gameDir = FTBQKeysExpectPlatform.getGameDir();
20+
public static final Path configDir = FTBQKeysExpectPlatform.getConfigDir();
21+
public static final Path kubejsDir = KubeJSPaths.DIRECTORY;
2122

2223
public static final Gson gson = new GsonBuilder().setPrettyPrinting().create();
2324

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.mojang.brigadier.tree.ArgumentCommandNode;
77
import com.mojang.brigadier.tree.LiteralCommandNode;
88
import com.mojang.brigadier.tree.RootCommandNode;
9-
import dev.architectury.platform.Platform;
109
import dev.ftb.mods.ftbquests.FTBQuests;
1110
import dev.ftb.mods.ftbquests.quest.*;
1211
import dev.ftb.mods.ftbquests.quest.loot.RewardTable;
@@ -38,8 +37,8 @@ public static void serverRegisterCommandsEvent(CommandDispatcher<CommandSourceSt
3837
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 -> {
3938
try {
4039
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/");
40+
File transFiles = new File(parent, FTBQKeysMod.kubejsDir.toAbsolutePath() + "/assets/kubejs/lang/");
41+
File questsFolder = new File(FTBQKeysMod.configDir.toFile(), "ftbquests");
4342

4443
if (questsFolder.exists()) {
4544
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.18.x",
25-
"architectury": "4.x"
25+
"architectury": "3.x~4.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.
@@ -53,7 +42,6 @@ processResources {
5342

5443
shadowJar {
5544
exclude "fabric.mod.json"
56-
exclude "architectury.common.json"
5745

5846
configurations = [project.configurations.shadowCommon]
5947
classifier "dev-shadow"

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ modId = "ftbqkeys"
88
version = "${version}"
99
displayName = "FTBQLocalizationKeys"
1010
displayURL = "https://github.com/LocalizedMC/FTBQLocalizationKeys-Arch"
11+
credits = "BlackAuresArt"
1112
authors = "TexTrue, LocalizedMC"
1213
description = '''
1314
FTBQLocalizationKeys
@@ -31,6 +32,18 @@ side = "BOTH"
3132
[[dependencies.ftbqkeys]]
3233
modId = "architectury"
3334
mandatory = true
34-
versionRange = "[4,)"
35+
versionRange = "[3,4)"
36+
ordering = "AFTER"
37+
side = "BOTH"
38+
39+
[[dependencies.ftbqkeys]]
40+
modId = "kubejs"
41+
mandatory = true
42+
ordering = "AFTER"
43+
side = "BOTH"
44+
45+
[[dependencies.ftbqkeys]]
46+
modId = "ftbquests"
47+
mandatory = true
3548
ordering = "AFTER"
3649
side = "BOTH"

0 commit comments

Comments
 (0)