Just Enough Characters

Just Enough Characters

3M Downloads

拼音搜索不支持集成终端

Js23333 opened this issue · 1 comments

commented

MC版本:1.21.1
mod版本:4.5.15-neoforge
在集成终端中不能使用拼音搜索

commented

已经在 #141 中修复

看起来是由于集成终端mod的方法org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerItemStack:lambda$getInstanceFilterPredicate中,更换了lambda表达式的顺序,导致jech匹配失败。

在jech这边处理完之前,可以用如下方法来手动兼容:

  1. 在mc主目录下的文件夹config中,找到文件jecharacter-extra.json (该文件和jecharacters-client.toml同级,若该文件不存在则创建该文件)
  2. 将该文件内容更改为如下内容(如果曾经修改过该文件,请在修改过的文件的基础上,额外添加下文中regExp.additional的内容)
{
  "removals": [],
  "contains": {
    "additional": [
    ]
  },
  "equals": {
    "additional": []
  },
  "suffix": {
    "additional": []
  },
  "regExp": {
    "additional": [
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerFluidStack:lambda$getInstanceFilterPredicate$10(Ljava/lang/String;Lnet/minecraft/tags/TagKey;)Z",
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerFluidStack:lambda$getInstanceFilterPredicate$13(Ljava/lang/String;Lnet/neoforged/neoforge/fluids/FluidStack;)Z",
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerFluidStack:lambda$getInstanceFilterPredicate$8(Ljava/lang/String;Lnet/neoforged/neoforge/fluids/FluidStack;)Z",
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerItemStack:lambda$getInstanceFilterPredicate$1(Ljava/lang/String;Lnet/minecraft/world/item/ItemStack;)Z",
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerItemStack:lambda$getInstanceFilterPredicate$2(Ljava/lang/String;Lnet/minecraft/network/chat/Component;)Z",
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerItemStack:lambda$getInstanceFilterPredicate$4(Ljava/lang/String;Lnet/minecraft/tags/TagKey;)Z",
        "org.cyclops.integratedterminals.capability.ingredient.IngredientComponentTerminalStorageHandlerItemStack:lambda$getInstanceFilterPredicate$7(Ljava/lang/String;Lnet/minecraft/world/item/ItemStack;)Z"
    ]
  }
}