Skip to content

Commit

Permalink
修改 mixin 优先级,应该能解决 mca 的语言冲突问题
Browse files Browse the repository at this point in the history
- 修正英文错误
  • Loading branch information
TartaricAcid committed Sep 8, 2024
1 parent f413df3 commit 13a7ad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import java.util.Map;

@Mixin(ClientLanguage.class)
@Mixin(value = ClientLanguage.class, priority = 943)
public class LanguageMixin {
@Inject(method = "getOrDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", at = @At(value = "HEAD"), cancellable = true)
public void getCustomLanguage(String key, String defaultValue, CallbackInfoReturnable<String> call) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/touhou_little_maid/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@
"tooltips.touhou_little_maid.servant_bell.desc.2": "- 绑定后,右键使用即可召回女仆。",
"tooltips.touhou_little_maid.monster_list.desc": "放置在女仆的副手,她会依据此名单来进行攻击",
"overlay.touhou_little_maid.compass.tips": "右击可以显示女仆的任务区域",
"overlay.touhou_little_maid.golden_apple.tips": "金苹果可以 Shfit 右击喂给女仆",
"overlay.touhou_little_maid.golden_apple.tips": "金苹果可以 Shift 右击喂给女仆",
"overlay.touhou_little_maid.potion.tips": "药水可以 Shift 右击喂给女仆",
"overlay.touhou_little_maid.milk_bucket.tips": "牛奶桶可以 Shfit 右击清除女仆的药水效果",
"overlay.touhou_little_maid.milk_bucket.tips": "牛奶桶可以 Shift 右击清除女仆的药水效果",
"overlay.touhou_little_maid.script_book.tips": "它可以向女仆写入聊天气泡文本",
"overlay.touhou_little_maid.glass_bottle.tips": "右击取出经验,Shift 右击全部取出",
"overlay.touhou_little_maid.name_tag.tips": "右击命名女仆",
Expand Down

0 comments on commit 13a7ad4

Please sign in to comment.