
Slot Index Out of Bounds in ContainerInterfaceTerminal
sipo610 opened this issue · 1 comments
Describe the bug
A Slot 36 not in valid range [0,36) exception occurs when interacting with AE2's interface terminal, caused by attempting to access an invalid item slot index. This crashes the game/server during inventory operations.
To Reproduce
QQ2025324-17344.mp4
Open AE2 Interface Terminal with 36+ slot storage attached
Perform item transfer between terminal and external container
Crash occurs immediately
Expected behavior
The terminal should handle slot indices within valid range (0-35) without throwing exceptions.
Additional context
https://mclo.gs/ksXkgNa
Relevant error snippet from provided logs:
java.lang.RuntimeException: Slot 36 not in valid range - [0,36)
at net.minecraftforge.items.ItemStackHandler.validateSlotIndex(ItemStackHandler.java:216)
at appeng.container.implementations.ContainerInterfaceTerminal.crazyae$addItems(...)
Environment
Minecraft Version: 1.12.2
AE2 Version: AE2 Unofficial Extended Life-0.56.7
Forge Version: 14.23.5.2854
Lazy AE2 Version:1.1.26
Crazy AE Version:0.5.0.1
Extra Cells Version:2.6.5