Skip to content

Commit 721e2fe

Browse files
authored
feat: update to 1.21.3 (#30)
* Update to 1.21.3 * Create gradle-publish.yml * Update gradle-publish.yml * Delete .github/workflows/gradle-publish.yml * Delete .github/workflows directory * Revert "Delete .github/workflows directory" This reverts commit 52ff85b. * Revert "Delete .github/workflows/gradle-publish.yml" This reverts commit 9cbe774. * Delete .github/workflows/gradle-publish.yml
1 parent 26af41c commit 721e2fe

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'fabric-loom' version '1.6-SNAPSHOT'
2+
id 'fabric-loom' version '1.8-SNAPSHOT'
33
id 'maven-publish'
44
}
55

6-
sourceCompatibility = JavaVersion.VERSION_17
7-
targetCompatibility = JavaVersion.VERSION_17
6+
sourceCompatibility = JavaVersion.VERSION_21
7+
targetCompatibility = JavaVersion.VERSION_21
88

99
archivesBaseName = project.archives_base_name
1010
version = "mc${project.minecraft_version}-${project.mod_version}"
@@ -54,7 +54,7 @@ processResources {
5454
}
5555

5656
tasks.withType(JavaCompile).configureEach {
57-
it.options.release = 17
57+
it.options.release = 21
5858
}
5959

6060
java {

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ 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.2
9-
loader_version=0.15.11
7+
minecraft_version=1.21.3
8+
yarn_mappings=1.21.3+build.2
9+
loader_version=0.16.9
1010

1111
# Mod Properties
1212
# x-release-please-start-version
13-
mod_version=0.3.1
13+
mod_version=0.3.3
1414
# x-release-please-end
1515
maven_group=io.nihlen.scriptschunkloaders
1616
archives_base_name=scripts-chunk-loaders
1717

1818
# Dependencies
19-
fabric_version=0.100.1+1.21
19+
fabric_version=0.107.0+1.21.3

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/java/io/nihlen/scriptschunkloaders/mixin/AbstractMinecartEntityMixin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
@Mixin(AbstractMinecartEntity.class)
2525
public abstract class AbstractMinecartEntityMixin extends Entity implements MinecartEntityExt {
26-
@Shadow public abstract AbstractMinecartEntity.Type getMinecartType();
2726

2827
@Unique
2928
private boolean isChunkLoader = false;
@@ -58,8 +57,9 @@ private void injectConstructor(CallbackInfo callbackInfo) {
5857
}
5958

6059
public void scripts_chunk_loaders$setChunkLoaderNameFromInventory() {
61-
var minecartType = this.getMinecartType();
62-
if (minecartType == AbstractMinecartEntity.Type.CHEST) {
60+
EntityType<?> minecartType = this.getType();
61+
62+
if (minecartType == EntityType.CHEST_MINECART) {
6363
//noinspection DataFlowIssue - We're sure this is a chest because of the if statement.
6464
var entity = (ChestMinecartEntity)(Object)this;
6565
var firstSlot = entity.getInventory().get(0);

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"scripts-chunk-loaders.mixins.json"
2424
],
2525
"depends": {
26-
"fabricloader": ">=0.15.11",
27-
"minecraft": "1.21",
26+
"fabricloader": ">=0.16.9",
27+
"minecraft": "1.21.3",
2828
"java": ">=21",
2929
"fabric-api": "*"
3030
}

src/main/resources/scripts-chunk-loaders.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "io.nihlen.scriptschunkloaders.mixin",
5-
"compatibilityLevel": "JAVA_17",
5+
"compatibilityLevel": "JAVA_21",
66
"mixins": [
77
],
88
"client": [

0 commit comments

Comments
 (0)