From f73c22bb365d306694ff4428a5785a4e4c936a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=B6=A4=E5=8D=83=E5=B0=98?= Date: Tue, 10 Oct 2023 20:28:26 +0800 Subject: [PATCH] V1.0.5-build.27 MC1.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 1.18.2 帕秋莉兼容 #3 --- .../autotranslation/mixin/compat/patchouli/BookEntryMixin.java | 2 +- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/langyue/autotranslation/mixin/compat/patchouli/BookEntryMixin.java b/common/src/main/java/me/langyue/autotranslation/mixin/compat/patchouli/BookEntryMixin.java index 9a9a7a2..e40f5a8 100644 --- a/common/src/main/java/me/langyue/autotranslation/mixin/compat/patchouli/BookEntryMixin.java +++ b/common/src/main/java/me/langyue/autotranslation/mixin/compat/patchouli/BookEntryMixin.java @@ -11,7 +11,7 @@ @Mixin(BookEntry.class) public class BookEntryMixin { - @ModifyArg(method = "getName", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/chat/Component;literal(Ljava/lang/String;)Lnet/minecraft/network/chat/MutableComponent;")) + @ModifyArg(method = "getName", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/chat/TextComponent;(Ljava/lang/String;)V")) private String getNameMixin(String string) { if (ScreenTranslationHelper.shouldTranslate(Minecraft.getInstance().screen)) { if (TranslatorHelper.shouldTranslate(string)) { diff --git a/gradle.properties b/gradle.properties index 52bcf4d..1d766be 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2G minecraft_version=1.18.2 archives_base_name=AutoTranslation -mod_version=1.0.5 +mod_version=1.0.5-build.27 version_type=beta maven_group=me.langyue architectury_version=4.11.93