Repository navigation
修复早期 Mixin 日志导致的 KubeJS 启动崩溃 - #459
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mixin 准备阶段如果通过
Data_Energistics.LOGGER记录跳过原因,会触发模组主类的静态初始化。MutableComponent会经由ResourceLocation被提前加载,KubeJS 因此无法为它添加ComponentKJS。物品提示调用kjs$gold()时报错,随后错误界面调用kjs$gray()时崩溃。DataEnergisticsMixinPlugin现在用自己的私有 Log4j 日志器记录跳过原因和兼容性警告,避免在这两个回调中初始化模组主类。验证
gradlew.bat --offline --console=plain jar spotlessJavaCheck通过。2101.7.2-build.381和 NeoForge21.1.267,确认MutableComponent获得了ComponentKJS,原有物品提示脚本以及Text.gold()、Text.gray()回归验证均通过,KubeJS 客户端日志为 0 条错误。