HomeJavaModsAE2 Sophisticated Backpacks FIX
AE2 Sophisticated Backpacks FIX
ModsJava

AE2 Sophisticated Backpacks FIX

by MagmaIce · on Modrinth

A lightweight mixin-based patch to prevent server crashes during AE2 item import. Free Minecraft Java mod for 1.19.2.

⬇ Download on Modrinth

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.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more