swapStacks now checks for sided inventories (fixes #12 I guess)