Preconditions.checkNotNull(inventory, "Invalid target!");
if (inventory instanceof ISidedInventory) {
InventoryUtils.swapStacks((ISidedInventory)inventory,
fromSlot - 1, Objects.firstNonNull(fromDirection, ForgeDirection.UNKNOWN),
intoSlot - 1, Objects.firstNonNull(toDirection, ForgeDirection.UNKNOWN));
<BUG>}
else InventoryUtils.swapStacks(inventory, fromSlot - 1, intoSlot - 1);

}</BUG>
@LuaCallable(returnTypes = LuaReturnType.TABLE, description = "Get details of an item in a particular slot")

Preconditions.checkNotNull(inventory, "Invalid target!");
if (inventory instanceof ISidedInventory) {
InventoryUtils.swapStacks((ISidedInventory)inventory,
fromSlot - 1, Objects.firstNonNull(fromDirection, ForgeDirection.UNKNOWN),
intoSlot - 1, Objects.firstNonNull(toDirection, ForgeDirection.UNKNOWN));
} else InventoryUtils.swapStacks(inventory, fromSlot - 1, intoSlot - 1);
inventory.markDirty();
}
@LuaCallable(returnTypes = LuaReturnType.TABLE, description = "Get details of an item in a particular slot")
