Skip to content

Commit

Permalink
V1.0.5-build.27 MC1.18.2
Browse files Browse the repository at this point in the history
修复 1.18.2 帕秋莉兼容

#3
  • Loading branch information
LangYueMc committed Oct 10, 2023
1 parent 072f2e6 commit f73c22b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;<init>(Ljava/lang/String;)V"))
private String getNameMixin(String string) {
if (ScreenTranslationHelper.shouldTranslate(Minecraft.getInstance().screen)) {
if (TranslatorHelper.shouldTranslate(string)) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f73c22b

Please sign in to comment.