From 67578c4c41577821e94062043389b6cdc1002344 Mon Sep 17 00:00:00 2001 From: Layue13 Date: Sun, 11 Oct 2026 04:22:50 -0700 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20required-after:particlelib?= =?UTF-8?q?=EF=BC=9B=E9=A1=B9=E7=9B=AE=E5=90=8D=E5=92=8C=20artifactId=20?= =?UTF-8?q?=E6=94=B9=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 代码里没有任何类导入 ParticleLib,TDLM 的包里也没有这个模组,保留依赖会让模组无法加载。 Co-Authored-By: Claude Sonnet 5.5 --- README.md | 4 ++-- build.gradle | 2 +- settings.gradle | 2 +- src/main/java/com/pengu/thaumcraft/additions/TA.java | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f02e61d..39e7c0f 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ Build entries: - `./gradlew build` compiles the decompiled sources and resources into `build/libs/` (Gradle wrapper + GTNH convention toolchain, same layout as `balumg`; run with JDK 25). - `.gitea/workflows/build.yml` builds on push and on dispatch, and can publish to the TDLM Maven. -Known issues (not fixed on purpose, the decompile is kept faithful): +Known issues: -- `@Mod(dependencies = ...)` in `TA.java` still has `required-after:particlelib@[1,)`. No class imports ParticleLib, but the dependency string makes FML refuse to load the mod when ParticleLib is missing, and ParticleLib is not in TDLM. +- `@Mod(dependencies = ...)` in `TA.java`: the original had `;required-after:particlelib@[1,)`. No class imports ParticleLib and ParticleLib is not in TDLM, so TDLM removed it (a comment above `@Mod` says so). Everything else in the string is unchanged. - `guiFactory = "mrdimka.thaumcraft.additions.config.ConfigurationGuiFactory"` points at a package that does not exist in the jar (the original author renamed packages from `mrdimka` to `pengu`); the config GUI factory will not be found. - `mcmod.info` still says `"version": "???"`. - Build status: `./gradlew build` succeeds locally with JDK 25 (2026-10-11). The built jar has 336 classes: every class of the original jar except the 12 `cofh.*` API classes, plus the same 282 resources. It has **not been run in a game**. diff --git a/build.gradle b/build.gradle index 8ee5da2..85363e4 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ version = "${providers.gradleProperty('modVersion').get()}-${gitCommit}" afterEvaluate { publishing.publications.named('maven', MavenPublication) { groupId = project.group - artifactId = 'ThaumicAdditions' + artifactId = 'thaumicadditions' version = project.version } } diff --git a/settings.gradle b/settings.gradle index a72e025..69feef3 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,4 +15,4 @@ pluginManagement { } plugins { id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.29' } -rootProject.name = 'ThaumicAdditions' +rootProject.name = 'thaumicadditions' diff --git a/src/main/java/com/pengu/thaumcraft/additions/TA.java b/src/main/java/com/pengu/thaumcraft/additions/TA.java index e081066..9e8cfe8 100644 --- a/src/main/java/com/pengu/thaumcraft/additions/TA.java +++ b/src/main/java/com/pengu/thaumcraft/additions/TA.java @@ -58,12 +58,13 @@ import thaumcraft.api.wands.StaffRod; import thaumcraft.api.wands.WandCap; import thaumcraft.api.wands.WandRod; +// TDLM: 去掉了原来的 ";required-after:particlelib@[1,)"。代码里没有任何类导入 ParticleLib,TDLM 的包里也没有这个模组。 @Mod( modid = "thaumicadditions", version = "0.41", name = "Thaumic Additions", guiFactory = "mrdimka.thaumcraft.additions.config.ConfigurationGuiFactory", - dependencies = "required-after:Thaumcraft@[4.2.3.5,);required-after:Forge@[10.13.3.137,);required-after:Baubles@[1.0.1.10,);required-after:particlelib@[1,)" + dependencies = "required-after:Thaumcraft@[4.2.3.5,);required-after:Forge@[10.13.3.137,);required-after:Baubles@[1.0.1.10,)" ) public class TA {