跳到正文

AE2 Sophisticated Backpacks FIX

作者:MagmaIce

A lightweight mixin-based patch to prevent server crashes during AE2 item import.

收藏

介绍

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

Overview

This mod addresses a specific NullPointerException (NPE) that occurs when Applied Energistics 2 (Import Bus) attempts to extract items from certain external inventories, most notably from the Sophisticated Backpacks mod on Fabric.

The Problem

Some inventories occasionally return a null iterator when queried for their contents. AE2 expects a valid list and immediately attempts to check for items, leading to an instant server crash when it encounters the null value.

The Solution

The mod implements a Redirect Mixin into StorageImportStrategy. It intercepts the internal item check and adds a “safety gate”:

If the inventory returns null: The mod catches it and tells AE2 that the inventory is simply empty, allowing the server to continue ticking normally.

If the inventory is valid: It allows the process to continue without any interference.

常见问题

AE2 Sophisticated Backpacks FIX 支持哪些 Minecraft 版本?

AE2 Sophisticated Backpacks FIX 支持 Minecraft Java 版 1.19.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

AE2 Sophisticated Backpacks FIX 怎么安装?

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

评论

登录后评论和评分