跳到正文

Create OBB Collision Crash Fix

作者:BlazeyCrazey

Fixes a server crash in Create 6.0.10 caused by a NullPointerException in contraption collision code (ContinuousOBBCollider.collideMany).

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

When moving contraptions collide in certain degenerate or exact-overlap cases, Create’s collision manifold fails to record a separation axis, leaving it null. The game then tries to read .x on that null Vec3 and the server crashes:

java.lang.NullPointerException: Cannot read field “x” because “mf.axis” is null
at …ContinuousOBBCollider.collideMany(ContinuousOBBCollider.java:153)
This mod uses a Mixin to intercept the two null-prone field reads (axis and normalAxis) and substitutes Vec3.ZERO when they’re null. A zero vector makes that frame’s collision contribution 0 — harmless — instead of crashing the server tick thread.

Details:

Lightweight — single mixin, no runtime overhead beyond a null check
Doesn’t modify Create’s logic, just prevents the null dereference
Works server-side (install on server only is fine, but safe on both sides)
For Create 6.0.10 on NeoForge / Minecraft 1.21.1

常见问题

Create OBB Collision Crash Fix 支持哪些 Minecraft 版本?

Create OBB Collision Crash Fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Create OBB Collision Crash Fix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

BlazeyCrazey 的其他作品

查看全部 →