Skip to content

[Bug] AppliedE 加载器类型不识别 #5068

@ZZZank

Description

@ZZZank

问题描述 | Bug Description

  1. 下载AppliedE到随便一个实例中,比如appliede-0.14.3.jar
  2. 提示“加载器不匹配”
Image

我在IDEA里打断点看了看,发现这一行会出错:

List<HashMap<String, Object>> dependencies = toml.getList("dependencies." + modID);

"java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')"

大致的出错过程:

  • AppliedE的mod.toml里没有[[dependencies.appliede]],只有[[dependencies]]dependencies这个key对应的值是一个list
  • toml寻找结果时先按照dependencies.appliede为key查找,没找到
  • dependencies.appliede被分割成两个key: dependenciesappliede
  • 按照第一个key找到了一个list。为了再通过第二个key查找,toml会将这个结果强转成map
  • list不能强转成map,于是ClassCastException

启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

2025-12-24T22-04-23.zip

注:在日志文件里我什么异常也没看见,建议直接跳过

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions