Skip to content

Commit d8d7b4d

Browse files
committed
IMPORTANT REFACTOR: 使用LangProvider插件生成语言
1 parent cc7f02f commit d8d7b4d

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
6+
dependencies {
7+
classpath files("$rootDir/gradle/plugins/LangProvider.jar")
8+
classpath 'org.ow2.asm:asm:9.6'
9+
classpath 'org.ow2.asm:asm-tree:9.6'
10+
}
11+
}
12+
113
plugins {
214
id 'net.neoforged.moddev.legacyforge' version '2.0.91' apply(false)
315
id 'com.diffplug.spotless' version '8.1.0' apply(false)
@@ -37,12 +49,17 @@ configure(ctnhSubprojects) {
3749
apply plugin: 'net.neoforged.moddev.legacyforge'
3850
apply plugin: 'com.diffplug.spotless'
3951
apply plugin: 'io.freefair.lombok'
52+
apply plugin: 'com.ctnhlang.langprovider'
4053

4154
version = mod_version
4255
group = maven_group
4356
base { archivesName = archives_base_name }
4457
java { sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17 }
4558

59+
ctnhLang {
60+
modId = mod_id
61+
}
62+
4663
sourceSets {
4764
main.resources {
4865
srcDir 'src/generated/resources'

gradle/ctnh.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ omnicells = "7152251"
5454
merequester = "5689932"
5555
ae2wt = "7251206"
5656
ae2ct = "7182165"
57-
ae2cs = "7690555"
57+
ae2cs = "7723761"
5858
betterp2p = "6015618"
5959
clothconfig = "5729105"
6060
buildinggadgets = "6850495"

gradle/plugins/LangProvider.jar

26 KB
Binary file not shown.

0 commit comments

Comments
 (0)