Skip to content

Commit

Permalink
Backport for 1.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCartes committed Jul 2, 2024
1 parent 31b3b94 commit 90586b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {

repositories {}

archivesBaseName = "${project.mod_id}-mc${project.minecraft_version}"
archivesBaseName = "${project.mod_id}-${project.minecraft_major_version}"
version = "${project.mod_version}"

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17


dependencies {
Expand All @@ -22,13 +22,13 @@ dependencies {

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release.set(21)
it.options.release.set(17)
}

java {
withSourcesJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ mod_name=Glowing Torchflower
mod_id=glowing-torchflower
mod_version=1.1.0

minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
minecraft_major_version=1.20.3
minecraft_version=23w40a
yarn_mappings=23w40a+build.9
loader_version=0.15.11

org.gradle.jvmargs=-Xmx1G
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"depends": {
"fabricloader": "*",
"minecraft": ">=1.20.5-",
"java": ">=21"
"minecraft": ">=1.20.3-alpha.23.40.a",
"java": ">=17"
}
}
2 changes: 1 addition & 1 deletion src/main/resources/glowing-torchflower.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "xyz.nikitacartes.glowingtorchflower.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_17",
"mixins": [
"BlocksMixin"
],
Expand Down

0 comments on commit 90586b8

Please sign in to comment.