JujutsuCraft 持久化崩溃修复
一个针对 Minecraft 1.20.1 Forge 上的 JujutsuCraft 50/50.1 的小型兼容性补丁,由 MVQ1303 制作。
它修复了什么?
JujutsuCraft 在处理玩家进度时偶尔会崩溃,错误信息类似于:
java.lang.NullPointerException:
Cannot read field "PlayerLevel" because "pVars" is null
at net.mcreator.jujutsucraft.procedures.CompletedAdvancementProcedure.execute(...)
当 JujutsuCraft 尝试访问其自定义玩家变量,而 PlayerVariables 对象意外不可用时,就会发生这种情况。
此补丁为受影响的 CompletedAdvancementProcedure 添加了空值安全处理,防止缺少玩家变量对象导致服务器线程立即崩溃。
它是如何工作的?
该模组使用小型 Forge coremod 转换器在运行时修补 JujutsuCraft。
补丁不会修改或重新分发 JujutsuCraft 本身,而是拦截受影响进度程序中的玩家变量字段访问。
当玩家变量可用时,JujutsuCraft 正常运行。
如果变量意外为空,补丁将提供安全的默认值或忽略无效写入,而不是让 Java 抛出 NullPointerException。
当前补丁仅针对:
net.mcreator.jujutsucraft.procedures.CompletedAdvancementProcedure
它有意不修改 JujutsuCraft 的世界生成、技巧、生物、结构、模型、纹理或其他游戏系统。
兼容性
- Minecraft:1.20.1
- Mod Loader:Forge 47.x
- JujutsuCraft:50 / 50.1
- Side:客户端和服务器
- 兼容 Jujutsu Vanilla World
- 需要安装 JujutsuCraft
安装方法
- 安装 JujutsuCraft 50/50.1。
- 将 JujutsuCraft Persistent Crash Fix 放入你的
mods 文件夹。
- 正常启动 Minecraft。
请勿移除 JujutsuCraft。这是一个附加/兼容性补丁,不包含原始模组。
致谢
由 MVQ1303 制作
在安装模组的世界中进入世界时,玩家还将收到一条一次性聊天消息:
[JJC Crash Fix] Made by MVQ1303
开发状态
该项目目前处于实验阶段。
当前的开发版本正在测试一个世界加载问题,以确定是否适合稳定发布。
如果你遇到另一个涉及 pVars 或 PlayerVariables 的 JujutsuCraft 崩溃,请提供完整的崩溃报告,以便调查受影响的程序的支持情况。
免责声明
这是一个非官方的兼容性补丁,与原始 JujutsuCraft 开发者无关。
本项目未重新分发任何 JujutsuCraft 代码、资产、模型、纹理或其他受版权保护的内容。
JujutsuCraft Persistent Crash Fix
A small compatibility patch for JujutsuCraft 50/50.1 on Minecraft 1.20.1 Forge, created by MVQ1303.
What does it fix?
JujutsuCraft can occasionally crash while processing player advancements with an error similar to:
java.lang.NullPointerException:
Cannot read field "PlayerLevel" because "pVars" is null
at net.mcreator.jujutsucraft.procedures.CompletedAdvancementProcedure.execute(...)
This happens when JujutsuCraft attempts to access its custom player variables while the PlayerVariables object is unexpectedly unavailable.
This patch adds null-safe handling to the affected CompletedAdvancementProcedure, preventing a missing player-variable object from immediately crashing the server thread.
How does it work?
The mod uses a small Forge coremod transformer to patch JujutsuCraft at runtime.
Instead of modifying or redistributing JujutsuCraft itself, the patch intercepts player-variable field accesses inside the affected advancement procedure.
When the player variables are available, JujutsuCraft behaves normally.
If the variables are unexpectedly null, the patch supplies a safe default value or ignores the invalid write rather than allowing Java to throw a NullPointerException.
The patch currently targets only:
net.mcreator.jujutsucraft.procedures.CompletedAdvancementProcedure
It does not intentionally modify JujutsuCraft's world generation, techniques, mobs, structures, models, textures, or other gameplay systems.
Compatibility
- Minecraft: 1.20.1
- Mod Loader: Forge 47.x
- JujutsuCraft: 50 / 50.1
- Side: Client and Server
- Compatible with Jujutsu Vanilla World
- JujutsuCraft is required
Installation
- Install JujutsuCraft 50/50.1.
- Place JujutsuCraft Persistent Crash Fix in your
mods folder.
- Launch Minecraft normally.
Do not remove JujutsuCraft. This is an addon/compatibility patch and does not contain the original mod.
Credits
Created by MVQ1303
When entering a world with the mod installed, players will also receive a one-time chat message:
[JJC Crash Fix] Made by MVQ1303
Development Status
This project is currently experimental.
The present development build is being tested for a world-loading issue before being considered suitable for a stable release.
If you encounter another JujutsuCraft crash involving pVars or PlayerVariables, please provide the full crash report so support for the affected procedure can be investigated.
Disclaimer
This is an unofficial compatibility patch and is not affiliated with the original JujutsuCraft developer.
No JujutsuCraft code, assets, models, textures, or other copyrighted content are redistributed by this project.
评论 0
登录后参与评分
还没有评论,来抢沙发吧