Skip to content

Commit

Permalink
fix: resolve issue with launching on 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamalam360 committed Oct 24, 2024
1 parent 35edc8b commit 996df87
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Add `ClientPlayLifecycleEvents`.
- Fix issue with not being able to launch on 1.21.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ subprojects {

loom {
silentMojangMappingsLicense()

mixin {
useLegacyMixinAp = false
}
}

jar {
Expand Down
4 changes: 2 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ publishing {
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version,
"minecraft_version": project.minecraft_version,
"minecraft_version": project.minimum_minecraft_version,
"fabric_api_version": libs.versions.fabric.api.get(),
"architectury_version": libs.versions.architectury.get()
}

inputs.property "version", project.version
inputs.property "minecraft_version", project.minecraft_version
inputs.property "minecraft_version", project.minimum_minecraft_version
inputs.property "fabric_api_version", libs.versions.fabric.api.get()
inputs.property "architectury_version", libs.versions.architectury.get()
}
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.parallel=true
version=1.2.1+1.21.1
version=1.2.2+1.21.1
minecraft_version=1.21.1
additional_minecraft_versions=1.21
minimum_minecraft_version=1.21
branch=1.21.1
group=io.github.jamalam360
mod_name=JamLib
Expand Down
10 changes: 7 additions & 3 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,16 @@ publishing {
}

processResources {
filesMatching("neoforge.mods.toml") {
expand "minecraft_version": project.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 "minecraft_version", project.minecraft_version
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()
}

Expand Down
4 changes: 2 additions & 2 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

Expand Down

0 comments on commit 996df87

Please sign in to comment.