mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-16 06:27:39 +00:00

This *shouldn't* be needed, as the compartment index is always >= 0, and Inventory.getItem returns an empty stack if the item is not found. However, some mods pass a negative compartment index, which causes getItem to throw an AIOOB instead. Fixes #2267