Skip to content

Commit 9d583b7

Browse files
committed
Update to 1.20.5-pre1
1 parent 00774a5 commit 9d583b7

8 files changed

Lines changed: 27 additions & 45 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,26 @@ jobs:
1212
matrix:
1313
# Use these Java versions
1414
java: [
15-
17, # Current Java LTS & minimum supported by Minecraft
16-
21, # Current Java LTS
15+
21, # Current Java LTS & minimum supported by Minecraft
1716
]
18-
# and run on both Linux and Windows
19-
os: [ubuntu-22.04, windows-2022]
20-
runs-on: ${{ matrix.os }}
17+
runs-on: ubuntu-22.04
2118
steps:
2219
- name: checkout repository
2320
uses: actions/checkout@v4
2421
- name: validate gradle wrapper
25-
uses: gradle/wrapper-validation-action@v1
22+
uses: gradle/wrapper-validation-action@v2
2623
- name: setup jdk ${{ matrix.java }}
2724
uses: actions/setup-java@v4
2825
with:
2926
java-version: ${{ matrix.java }}
3027
distribution: 'microsoft'
3128
- name: make gradle wrapper executable
32-
if: ${{ runner.os != 'Windows' }}
3329
run: chmod +x ./gradlew
3430
- name: build
3531
run: ./gradlew build
3632
- name: capture build artifacts
37-
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
38-
uses: actions/upload-artifact@v3
33+
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
34+
uses: actions/upload-artifact@v4
3935
with:
4036
name: Artifacts
41-
path: build/libs/
37+
path: build/libs/

build.gradle

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

@@ -39,11 +39,7 @@ dependencies {
3939

4040
// Fabric API. This is technically optional, but you probably want it anyway.
4141
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
42-
43-
// Uncomment the following line to enable the deprecated Fabric API modules.
44-
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
4542

46-
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
4743
}
4844

4945
processResources {
@@ -55,7 +51,7 @@ processResources {
5551
}
5652

5753
tasks.withType(JavaCompile).configureEach {
58-
it.options.release = 17
54+
it.options.release = 21
5955
}
6056

6157
java {
@@ -64,8 +60,8 @@ java {
6460
// If you remove this line, sources will not be generated.
6561
withSourcesJar()
6662

67-
sourceCompatibility = JavaVersion.VERSION_17
68-
targetCompatibility = JavaVersion.VERSION_17
63+
sourceCompatibility = JavaVersion.VERSION_21
64+
targetCompatibility = JavaVersion.VERSION_21
6965
}
7066

7167
jar {
@@ -77,7 +73,7 @@ jar {
7773
// configure the maven publication
7874
publishing {
7975
publications {
80-
mavenJava(MavenPublication) {
76+
create("mavenJava", MavenPublication) {
8177
from components.java
8278
}
8379
}

gradle.properties

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

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=24w12a
8-
loader_version=0.15.7
7+
minecraft_version=1.20.5-pre1
8+
loader_version=0.15.9
99

1010
# Mod Properties
11-
mod_version=1.7.0-beta3
11+
mod_version=1.7.0-beta4
1212
maven_group=io.github.misode
1313
archives_base_name=packtest
1414

1515
# Dependencies
16-
fabric_version=0.96.12+1.20.5
16+
fabric_version=0.96.15+1.20.5

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.

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.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/io/github/misode/packtest/mixin/TagLoaderMixin.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,24 @@
22

33
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
44
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
5-
import com.mojang.serialization.DataResult;
65
import io.github.misode.packtest.LoadDiagnostics;
76
import net.minecraft.resources.ResourceLocation;
8-
import net.minecraft.tags.TagFile;
97
import net.minecraft.tags.TagLoader;
108
import org.slf4j.Logger;
119
import org.spongepowered.asm.mixin.Final;
1210
import org.spongepowered.asm.mixin.Mixin;
1311
import org.spongepowered.asm.mixin.Shadow;
1412
import org.spongepowered.asm.mixin.injection.At;
1513

16-
import java.util.function.Consumer;
17-
1814
/**
1915
* Catch tag errors and removes stacktrace.
20-
* Removes the duplicate data result error.
2116
*/
2217
@Mixin(TagLoader.class)
2318
public class TagLoaderMixin {
2419
@Shadow
2520
@Final
2621
private static Logger LOGGER;
2722

28-
@WrapOperation(method = "load", at = @At(value = "INVOKE", target = "Lcom/mojang/serialization/DataResult;getOrThrow(ZLjava/util/function/Consumer;)Ljava/lang/Object;", remap = false))
29-
private static Object removeDuplicateError(DataResult<Object> dataResult, boolean allowPartial, Consumer<String> onError, Operation<TagFile> original) {
30-
return dataResult.getOrThrow(allowPartial, (error) -> {});
31-
}
32-
3323
@WrapOperation(method = "load", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;[Ljava/lang/Object;)V", remap = false))
3424
private static void catchTagError(Logger logger, String message, Object[] args, Operation<Void> original) {
3525
String error = ((Exception)args[3]).getMessage().replaceFirst("^[A-Za-z0-9.]+Exception: ", "");

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"accessWidener": "packtest.accesswidener",
2525
"depends": {
26-
"fabricloader": ">=0.15.0",
26+
"fabricloader": ">=0.15.9",
2727
"minecraft": ">=1.20.5-",
2828
"java": ">=17",
2929
"fabric-api": "*"

0 commit comments

Comments
 (0)