File tree Expand file tree Collapse file tree 6 files changed +16
-16
lines changed
java/io/nihlen/scriptschunkloaders/mixin Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 11plugins {
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
99archivesBaseName = project. archives_base_name
1010version = " mc${ project.minecraft_version} -${ project.mod_version} "
@@ -54,7 +54,7 @@ processResources {
5454}
5555
5656tasks. withType(JavaCompile ). configureEach {
57- it. options. release = 17
57+ it. options. release = 21
5858}
5959
6060java {
Original file line number Diff line number Diff 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
1515maven_group =io.nihlen.scriptschunkloaders
1616archives_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
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =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
44networkTimeout =10000
55validateDistributionUrl =true
66zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 2323
2424@ Mixin (AbstractMinecartEntity .class )
2525public 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 );
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments