摘要
此模组修复了 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.jarfile - Delete the
META-INFfolder 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! :)
下载 Class Loader Fixer
下载 Class Loader Fixer
下载 Class Loader Fixer
下载 Class Loader Fixer
下载 Class Loader Fixer
下载 Class Loader Fixer
下载 Class Loader Fixer
- 将版本统一为一个(我之前怎么没注意到这个可能性???)
- 修复 ObsidiPlates 1.4.2 的兼容性问题(在 FTB Beta Pack A 12 中发现了此问题)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧