mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-10-22 15:32:29 +00:00
Unlike (Neo)Forge, Fabric's transfer API distinguishes between slotted containers (such as chests) and non-slotted ones (such as bundles). Our current code (and interface) currently assumes everything to have slots, but for #2213, we need a way to support non-slotted containers. We can't really change the interface here, so instead we go the other route: treat the Iterable<StorageView<...>> as a list of slots. This is pretty gross (which is why I've put it off for so long), but easy enough to implement.