跳到正文

FixCreateSimulatedRope

作者:Lin928rain

A fix mod for Create Simulated that prevents the Rope Connector from crashing the game on the client side.

收藏

介绍

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

修复 Create Simulated 绳索连接器崩溃

Fix for Create Simulated Rope Connector Crash

问题 / The Problem

在服务器中游玩时,当准星对准物理化结构上连接了绳索的绳索连接器(Rope Connector)时,游戏会立即崩溃。

When playing on a multiplayer server, the game crashes immediately when the player’s crosshair is aimed at a Rope Connector that is part of a physicalized structure and has ropes connected to it.

原因 / The Cause

Create: Aeronautics 1.3.0 的 RopeStrandHolderBehavior.addServerStrand() 方法在客户端也会执行,但内部调用了服务端专属的 ServerLevelRopeManager,导致空指针异常。

The RopeStrandHolderBehavior.addServerStrand() method in Create: Aeronautics 1.3.0 is executed on the client side as well, but it internally calls the server-exclusive ServerLevelRopeManager, resulting in a NullPointerException (NPE).

修复 / The Fix

通过 Mixin 在方法开头添加客户端检查,阻止在客户端执行服务端逻辑。

This mod uses a Mixin to inject a client-side check at the beginning of the method, preventing the execution of server-side logic on the client.

兼容性

  • Minecraft: 1.21.1
  • NeoForge: 21.1.236+
  • Create Simulated: 1.3.0

说明 / Note

这是一个临时修复补丁。一旦 Create Simulated 官方发布修复版本,本模组将不再需要。

This is a temporary hotfix patch. Once the official Create Simulated mod releases an update containing this fix, this mod will no longer be needed.

源码 / Source Code

[[GitHub 仓库链接]](https://github.com/Lin928rain/FixCreateSimulatedRope)

常见问题

FixCreateSimulatedRope 支持哪些 Minecraft 版本?

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

FixCreateSimulatedRope 怎么安装?

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

评论

登录后评论和评分