AE2 Sophisticated Backpacks FIX
作者:rebot | 分类:模组
Minecraft 版本: 1.19.2
平台: fabric
标签: optimization storage utility
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.
请登录后举报
暂无评论,抢个沙发吧~