Skip to content

AE2 Sophisticated Backpacks FIX

By MagmaIceOwner

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

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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.