From 8fcedebb920444647d97ccebc49dfd125bf52261 Mon Sep 17 00:00:00 2001 From: Jamalam Date: Thu, 24 Oct 2024 15:33:33 +0100 Subject: [PATCH 1/3] fix: processResources on NeoForge now works --- neoforge/build.gradle | 8 ++++++-- neoforge/src/main/resources/META-INF/neoforge.mods.toml | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 68c58e0..64f57af 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -96,12 +96,16 @@ publishing { } processResources { - filesMatching("neoforge.mods.toml") { - expand "minecraft_version": project.minimum_minecraft_version, + filesMatching("META-INF/neoforge.mods.toml") { + expand "version": project.version, + "minecraft_version": project.minimum_minecraft_version, + "neoforge_version": libs.versions.neoforge.get(), "architectury_version": libs.versions.architectury.get() } + inputs.property "version", project.version inputs.property "minecraft_version", project.minimum_minecraft_version + inputs.property "neoforge_version", libs.versions.neoforge.get() inputs.property "architectury_version", libs.versions.architectury.get() } diff --git a/neoforge/src/main/resources/META-INF/neoforge.mods.toml b/neoforge/src/main/resources/META-INF/neoforge.mods.toml index 1019f4f..6f06682 100644 --- a/neoforge/src/main/resources/META-INF/neoforge.mods.toml +++ b/neoforge/src/main/resources/META-INF/neoforge.mods.toml @@ -5,7 +5,7 @@ issueTrackerURL = "https://github.com/JamCoreModding/jamlib/issues" [[mods]] modId = "jamlib" -version = "${file.jarVersion}" +version = "${version}" displayName = "JamLib" displayURL = "https://github.com/JamCoreModding/jamlib" logoFile = "icon.png" @@ -15,7 +15,7 @@ description = '''The platform-agnostic library used in all of JamCore's mods''' [[dependencies.jamlib]] modId = "neoforge" type = "required" -versionRange = "[21,)" +versionRange = "[${neoforge_version},)" ordering = "NONE" side = "BOTH" From 265a22e0bced4fb49aa1f16335799b1907c17ac5 Mon Sep 17 00:00:00 2001 From: Jamalam Date: Thu, 24 Oct 2024 15:47:12 +0100 Subject: [PATCH 2/3] fix: don't use legacy mixin ap --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 04b40d3..5238225 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,10 @@ subprojects { loom { silentMojangMappingsLicense() + + mixin { + useLegacyMixinAp = false + } } jar { From fba1f028a33d797032dd5bacf264afea13aa6f7c Mon Sep 17 00:00:00 2001 From: Jamalam Date: Thu, 24 Oct 2024 16:29:05 +0100 Subject: [PATCH 3/3] feat: bump version --- CHANGELOG.md | 2 +- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b4ad77..cb4816d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -- Add `ClientPlayLifecycleEvents`. +- Update to 1.21.3/2 diff --git a/gradle.properties b/gradle.properties index e21f8d1..f4f7cc2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false org.gradle.parallel=true -version=1.2.1+1.21.3 +version=1.2.2+1.21.3 minecraft_version=1.21.3 additional_minecraft_versions=1.21.2 minimum_minecraft_version=1.21.2