AE2 Sophisticated Backpacks FIX

AE2 Sophisticated Backpacks FIX

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

63 downloads
3 followers

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.

No gallery available for this project.