From 6dda82a792ba2b60382be1fca4318b1172247ff0 Mon Sep 17 00:00:00 2001 From: diskree <96978370+diskree@users.noreply.github.com> Date: Thu, 4 Jan 2024 05:40:59 +0400 Subject: [PATCH] Minecraft 1.20.4 support (#15) * Update versions * Fix mixin --- build.gradle | 2 +- gradle.properties | 6 +++--- gradle/wrapper/gradle-wrapper.properties | 2 +- .../mixin/MixinIntegratedServerLoader.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index d69b2e3..d12f2ee 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '1.2-SNAPSHOT' + id 'fabric-loom' version '1.4-SNAPSHOT' id 'maven-publish' } diff --git a/gradle.properties b/gradle.properties index 366a870..0cc30b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,9 +1,9 @@ org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true -minecraft_version=1.20.1 -yarn_mappings=1.20.1+build.9 -loader_version=0.14.21 +minecraft_version=1.20.4 +yarn_mappings=1.20.4+build.3 +loader_version=0.15.3 mod_version=4.1 maven_group=com.rdvdev2 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c898b7a..fe4d52e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists \ No newline at end of file diff --git a/src/main/java/com/rdvdev2/disablecustomworldsadvice/mixin/MixinIntegratedServerLoader.java b/src/main/java/com/rdvdev2/disablecustomworldsadvice/mixin/MixinIntegratedServerLoader.java index d20d132..f34a2e0 100644 --- a/src/main/java/com/rdvdev2/disablecustomworldsadvice/mixin/MixinIntegratedServerLoader.java +++ b/src/main/java/com/rdvdev2/disablecustomworldsadvice/mixin/MixinIntegratedServerLoader.java @@ -10,7 +10,7 @@ public abstract class MixinIntegratedServerLoader { // Set canShowBackupPrompt = false @ModifyVariable( - method = "start(Lnet/minecraft/client/gui/screen/Screen;Ljava/lang/String;ZZ)V", + method = "start(Lnet/minecraft/world/level/storage/LevelStorage$Session;Lcom/mojang/serialization/Dynamic;ZZLjava/lang/Runnable;)V", at = @At("HEAD"), argsOnly = true, index = 4