Skip to content

Commit b3c5a36

Browse files
committed
chore(update): backport to 1.20
1 parent 965f1dc commit b3c5a36

File tree

5 files changed

+22
-19
lines changed

5 files changed

+22
-19
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
matrix:
1313
# Use these Java versions
1414
java: [
15-
21, # Current Java LTS
15+
17, # Java 17 for 1.20
1616
]
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-latest
1818
steps:
1919
- name: checkout repository
2020
uses: actions/checkout@v4
@@ -30,7 +30,7 @@ jobs:
3030
- name: build
3131
run: ./gradlew build
3232
- name: capture build artifacts
33-
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
33+
if: ${{ matrix.java == '17' }} # Only upload artifacts built from latest java
3434
uses: actions/upload-artifact@v4
3535
with:
3636
name: Artifacts

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
Ban Sleeping is a Minecraft Mod for Fabric 1.21 that prevents the player from sleeping in a bed
33

44
# Compatible Versions
5-
| Mod Version | Loader | Game Version(s) | Mod Version File |
6-
|-------------|--------|-----------------|-------------------------|
7-
| 1.0.1 | Fabric | 1.21 | 1.0.1-fabric+1.21.jar |
8-
| 1.0.0 | Fabric | 1.21 | 1.0.0-fabric+1.21.jar |
5+
| Mod Version | Loader | Game Version(s) | Mod Version File |
6+
|-------------|--------|-----------------|--------------------------------|
7+
| 1.0.1 | Fabric | 1.21 | 1.0.1-fabric+1.21.jar |
8+
| 1.0.1 | Fabric | 1.20 | 1.0.1-fabric+1.20-BACKPORT.jar |
9+
| 1.0.0 | Fabric | 1.21 | 1.0.0-fabric+1.21.jar |
910

1011
# Important Note
1112
This mod is a **server-side** mod!
@@ -14,6 +15,8 @@ Playing on a **server**? You are not required to have this downloaded.
1415

1516
Also: This mod requires the **Fabric API**
1617

18+
**THIS IS A BACKPORT, NO NEW FEATURES OR UPDATES WILL BE COMING TO THIS VERSION**
19+
1720
## About 1.0.1
1821
1.0.1 was just a refactoring change, no new features were added
1922

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ processResources {
5050
}
5151

5252
tasks.withType(JavaCompile).configureEach {
53-
it.options.release = 21
53+
it.options.release = 17
5454
}
5555

5656
java {
@@ -59,8 +59,8 @@ java {
5959
// If you remove this line, sources will not be generated.
6060
withSourcesJar()
6161

62-
sourceCompatibility = JavaVersion.VERSION_21
63-
targetCompatibility = JavaVersion.VERSION_21
62+
sourceCompatibility = JavaVersion.VERSION_17
63+
targetCompatibility = JavaVersion.VERSION_17
6464
}
6565

6666
jar {

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ org.gradle.parallel=true
44

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=1.21
8-
yarn_mappings=1.21+build.9
7+
minecraft_version=1.20
8+
yarn_mappings=1.20+build.1
99
loader_version=0.15.11
1010

1111
# Fabric API
12-
fabric_version=0.102.0+1.21
12+
fabric_version=0.83.0+1.20
1313

1414
# Mod Properties
15-
mod_version=1.0.1+1.21
15+
mod_version=1.0.1+1.20-BACKPORT
1616
maven_group=me.imgalvin.bansleeping
1717
archives_base_name=bansleeping

src/main/resources/fabric.mod.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"GalvinPython"
99
],
1010
"contact": {
11-
"homepage": "https://github.com/GalvinPython/bansleeping-minecraft",
12-
"sources": "https://github.com/GalvinPython/bansleeping-minecraft",
13-
"issues": "https://github.com/GalvinPython/bansleeping-minecraft/issues"
11+
"homepage": "https://github.com/GalvinCraft/bansleeping-minecraft",
12+
"sources": "https://github.com/GalvinCraft/bansleeping-minecraft",
13+
"issues": "https://github.com/GalvinCraft/bansleeping-minecraft/issues"
1414
},
1515
"license": "MIT",
1616
"icon": "assets/bansleeping/icon.png",
@@ -22,8 +22,8 @@
2222
},
2323
"depends": {
2424
"fabricloader": ">=0.15.11",
25-
"minecraft": "~1.21",
26-
"java": ">=21",
25+
"minecraft": "~1.20",
26+
"java": ">=17",
2727
"fabric-api": "*"
2828
}
2929
}

0 commit comments

Comments
 (0)