Smooth Swapping

Smooth Swapping

2M Downloads

Title: Crash on clicking Sophisticated Storage GUI (IndexOutOfBoundsException)

parkhan2018 opened this issue · 0 comments

commented

java.lang.IndexOutOfBoundsException: Index 71 out of bounds for length 0 at net.minecraft.class_2596$class_2597.<init>(ClickSlotC2SPacket.java:XX) at smoothswapping.mixin.ClickSlotPacketMixin.redirectConstructor(ClickSlotPacketMixin.java:XX) at net.p3pp3rf1y.sophisticatedcore.client.gui.StorageScreenBase.handleInventoryMouseClick(StorageScreenBase.java:XX)

Versions:
Minecraft: 1.20.1 (Forge)
Smooth-Swapping: Forge 1.20.1 version
Sophisticated Core: 1.20.1 version

-- Affected Screen --
Details:
Screen name: net.p3pp3rf1y.sophisticatedcore.client.gui.StorageScreenBase

Steps to reproduce:
Install Smooth Swapping alongside Sophisticated Core and its storage UI mods.
Open a storage screen (e.g., backpack or storage container).
Click on any slot — game crashes.

Disabling Smooth Swapping prevents the crash.

Suggested fix:
Add a blacklist of GUI screen classes (like net.p3pp3rf1y.sophisticatedcore.client.gui.StorageScreenBase) to avoid injecting the ClickSlot mixin in conflicting UI contexts.

(from logs by ai)