摘要
此模组修复了 Minecraft 旧版本中的类加载器问题。
详情
这是一个简单的 jar-mod,它在 FML 中为每个加载的类添加了 CodeSource。
这实际上就是该模组所做的全部工作(好吧,除了修复更老版本的 Forge 上的几个其他 bug)。
该模组附带了一个向后移植的 RelaunchClassLoader,它会覆盖内置的版本(来自 FML),并允许模组读取类的文件来源。
为什么在某些情况下需要这个?
例如,Block Helper 能够通过在物品提示中显示该物品所属的模组来帮助你识别物品。
此过程依赖于已加载类的 ProtectionDomain 的 CodeSource 对象。
旧版本的 FML 未设置此 CodeSource,这导致 Block Helper 认为所有物品都是原版物品。
安装
作为 ModLoaderMP / Forge 模组
此模组需要以 jar-mod 的形式安装。这意味着你需要……
- 确保备份你的
minecraft.jar!
- 将模组 zip 包的内容提取到
minecraft.jar 文件中
- 删除其中的
META-INF 文件夹
- 在操作时覆盖任何现有文件!
- ???
- Profit!
作为 Fabric 模组
我没有提供任何 Fabric 版本。不过,该修复已直接集成到 Fabricated Legacy Forge 中。因此,你不需要单独安装它!
不兼容的模组
- ObsidiPlates 1.4.2 与 v1 不兼容。这在 v2 中已修复。
如有任何不兼容问题,请告诉我! :)
Summary
This mod fixes the Class Loader in legacy versions of Minecraft.
Details
This is a simple jar-mod which adds the CodeSource to each loaded class in FML.
That is actually everything this mod does (well, besides fixing a few more bugs on even older versions of Forge).
This mod just ships a backported RelaunchClassLoader which overwrites the built-in version (from FML) and allows mods to read the file source of classes.
Why is this needed in some cases?
For example, Block Helper is able to show you in the item tooltips which mod a given item is from.
This procedure relies on the CodeSource object of the ProtectionDomains of the loaded classes.
Old versions of FML do not set this CodeSource, which leads Block Helper into thinking that everything is a Vanilla item.
Installation
As a ModLoaderMP / Forge mod
This mod needs to be installed as a jar-mod. That means, you have to...
- Be sure to back up your
minecraft.jar!
- Extract the content of the mod zip into the
minecraft.jar file
- Delete the
META-INF folder in there
- Overwrite any existing files when doing so!
- ???
- Profit!
As a Fabric mod
I do not have any Fabric versions available. However, the fix is incorporated directly into Fabricated Legacy Forge. Hence, you do not need to install it separately!
Unsupported mods
- ObsidiPlates 1.4.2 was incompatible with v1. This is fixed in v2.
Please let me know about any incompatibilities! :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧